1.0.0 • Published 10 years ago
phantom-ownpropertynames v1.0.0
phantom-ownpropertynames 
Fix
Object.getOwnPropertyNamesbehavior for functions in PhantomJS 1.9
Install
$ npm install --save phantom-ownpropertynamesUsage
Detect whether Object.getOwnPropertyNames is broken and shim if it is:
require('phantom-ownpropertynames/implement')Or just get the patched function directly:
var getOwnPropertyNames = require('phantom-ownpropertynames')
getOwnPropertyNames({foo: 'bar'})
// => ['foo']API
getOwnPropertyNames(obj) -> array
obj
Required
Type: object
License
MIT © Ben Drucker
1.0.0
10 years ago