1.0.1 • Published 7 years ago
@kingjs/is-enumerable v1.0.1
@kingjs/is-enumerable
Returns true if own or inherited property is enumerable.
Usage
Test if an inherited override of toString is enumerable like this:
var isEnumerable = require('@kingjs/is-enumerable');
isEnumerable.call(Object.create({ toString: null }), 'toString');result:
trueAPI
declare function isEnumerable(
this,
name: string
): booleanParameters
this: The object to test for an enumerable property.name: The property name to test.
Returns
Returns true if the own or inherited property name exists and is enumerable, otherwise false.
Install
With npm installed, run
$ npm install @kingjs/is-enumerableLicense
MIT