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 committed by Facebook Github Bot
parent fb16af7944
commit 3592122af3
1 changed files with 0 additions and 11 deletions

View File

@ -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);
}