UNPKG

babel-preset-test-bundled-dependencies

Version:

Allow custom config for create-react-app without ejecting

10 lines (7 loc) 240 B
export function isArray(obj) { return Object.prototype.toString.call(obj) === "[object Array]" } // Checks if an object has a property. export function has(obj, propName) { return Object.prototype.hasOwnProperty.call(obj, propName) }