You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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)
|
|
}
|