1.0.1 • Published 6 years ago

@guseyn/cutie-object v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

cutie-object

NPM Version Build Status codecov

Cutie extension for work with Object in JavaScript. It's based on the Async Tree Pattern.

Examples

You can find examples of using this library in the test directory.

Install

npm install @cuties/object

Run test

npm test

Run build

npm run build

Usage

const {
  // Needed async objects here from the table below
} = require('@cuties/object');

For more information about parameters in the async objects visit MDN docs for Object.

Async ObjectAsync/sync callParameters(default value/description)Representation result
AreObjectsEqualObject.isobj1, obj2boolean
AssignedObjectObject.assigntarget, ...sourcesobject
CreatedObjectObject.createproto, propertiesObjectobject
FrozenObjectObject.freezeobjobj
HasOwnPropertyobj.hasOwnPropertyobj, propboolean
IsExtensibleObject.isExtensibleobjboolean
IsFrozenObject.isFrozenobjboolean
IsPrototypeEnumerableobj.propertyIsEnumerableobj, propboolean
IsPrototypeOfprototypeObj.isPrototypeOfprototypeObj, objboolean
IsSealedObject.isSealedobjboolean
KeysObject.keysobjstring[]
LocaleStringFromobj.toLocaleStringobjstring
NotExtensibleObjectObject.preventExtensionsobjobj
ObjectWithDefinedPropertiesObject.definePropertiesobj, propsobj
ObjectWithDefinedPropertyObject.definePropertyobj, prop, descriptorobj
ObjectWithPrototypeOfObject.setPrototypeOfobj, prototypeobj
ObjectWithValueObject.assign({}, obj)[key] = valueobj, key, valueobj
OwnPropertyDescriptorObject.getOwnPropertyDescriptorobj, propobj
OwnPropertyNamesObject.getOwnPropertyNamesobj, propstring[]
OwnPropertySymbolsObject.getOwnPropertySymbolsobjstring[]
ProcessedObjectprocessedObjectobj, iterator, ...additionalArgsobj
PrototypeOfObject.getPrototypeOfobjprototype
SealedObjectObject.sealobjobj
StringFromobj.toStringobjstring
ObjectWithValueobj[key] = valueobj, key, valueobj
Valueobj[key]obj, keyvalue
ValueOfobj.valueOfobjvalue
ValuesObject.valuesobjstring[]