New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@cuties/object

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cuties/object

Cutie extension for working with Object in JavaScript.

latest
Source
npmnpm
Version
1.1.6
Version published
Maintainers
1
Created
Source

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[]

Keywords

cutie

FAQs

Package last updated on 22 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts