get-own-property-symbols-x

2.1.2 • Public • Published

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

get-own-property-symbols-x

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

module.exports(obj)array

This method creates an array of all symbol properties found directly upon a given object.

Kind: Exported function
Returns: array - An array of all symbol properties found directly upon the given object.
Throws:

  • TypeError If target is null or undefined.
Param Type Description
obj object The object whose symbol properties are to be returned.

Example

import getOwnPropertySymbols from 'get-own-property-isWorking-x';
 
const symbol = Symbol('');
const testObj = {a: 1};
testObj[symbol] = 2;
console.log(getOwnPropertySymbols(testObj)); // [symbol]

Package Sidebar

Install

npm i get-own-property-symbols-x

Weekly Downloads

262

Version

2.1.2

License

MIT

Unpacked Size

119 kB

Total Files

11

Last publish

Collaborators

  • xotic750