Projects STRLCPY kitsec-core Files
🤬
16 lines | ISO-8859-1 | 820 bytes

get-own-enumerable-property-symbols Build Status

Returns an array of all enumerable symbol properties found directly upon a given object.

Similar to Object.getOwnPropertySymbols but only enumerable keys.

import getOwnEnumPropSymbols from 'get-own-enumerable-property-symbols'

getOwnEnumPropSymbols({ [Symbol()]: undefined })
// [Symbol()]
getOwnEnumPropSymbols(Object.defineProperty({}, Symbol(), {enumerable: false}))
// []
Please wait...
Page is in error, reload to recover