UNPKG

babel-core

Version:

Turn ES6 code into readable vanilla ES5 with source maps

16 lines (11 loc) 317 B
"use strict"; exports.isArray = isArray; // Checks if an object has a property. exports.has = has; exports.__esModule = true; function isArray(obj) { return Object.prototype.toString.call(obj) === "[object Array]"; } function has(obj, propName) { return Object.prototype.hasOwnProperty.call(obj, propName); }