Delete unused code in console.js (#20860)

Summary:
The isPrimitive method in [console.js](5c2720b089/Libraries/polyfills/console.js (L364)) is unused. It should be deleted.
Pull Request resolved: https://github.com/facebook/react-native/pull/20860

Differential Revision: D13396715

Pulled By: cpojer

fbshipit-source-id: ddfd828086106c997dcc77f5eae67adb6a0c1dfa
This commit is contained in:
luckyzeng 2018-12-10 05:45:49 -08:00 коммит произвёл Facebook Github Bot
Родитель fb16af7944
Коммит 3592122af3
1 изменённых файлов: 0 добавлений и 11 удалений

Просмотреть файл

@ -361,17 +361,6 @@ const inspect = (function() {
return typeof arg === 'function';
}
function isPrimitive(arg) {
return (
arg === null ||
typeof arg === 'boolean' ||
typeof arg === 'number' ||
typeof arg === 'string' ||
typeof arg === 'symbol' || // ES6 symbol
typeof arg === 'undefined'
);
}
function objectToString(o) {
return Object.prototype.toString.call(o);
}