@cuties/object
Cutie extension for working with Object in JavaScript.
Last updated a year ago by guseyn .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @cuties/object 
SYNC missed versions from official npm registry.

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 Object Async/sync call Parameters(default value/description) Representation result
AreObjectsEqual Object.is obj1, obj2 boolean
AssignedObject Object.assign target, ...sources object
CreatedObject Object.create proto, propertiesObject object
FrozenObject Object.freeze obj obj
HasOwnProperty obj.hasOwnProperty obj, prop boolean
IsExtensible Object.isExtensible obj boolean
IsFrozen Object.isFrozen obj boolean
IsPrototypeEnumerable obj.propertyIsEnumerable obj, prop boolean
IsPrototypeOf prototypeObj.isPrototypeOf prototypeObj, obj boolean
IsSealed Object.isSealed obj boolean
Keys Object.keys obj string[]
LocaleStringFrom obj.toLocaleString obj string
NotExtensibleObject Object.preventExtensions obj obj
ObjectWithDefinedProperties Object.defineProperties obj, props obj
ObjectWithDefinedProperty Object.defineProperty obj, prop, descriptor obj
ObjectWithPrototypeOf Object.setPrototypeOf obj, prototype obj
ObjectWithValue Object.assign({}, obj)[key] = value obj, key, value obj
OwnPropertyDescriptor Object.getOwnPropertyDescriptor obj, prop obj
OwnPropertyNames Object.getOwnPropertyNames obj, prop string[]
OwnPropertySymbols Object.getOwnPropertySymbols obj string[]
ProcessedObject processedObject obj, iterator, ...additionalArgs obj
PrototypeOf Object.getPrototypeOf obj prototype
SealedObject Object.seal obj obj
StringFrom obj.toString obj string
ObjectWithValue obj[key] = value obj, key, value obj
Value obj[key] obj, key value
ValueOf obj.valueOf obj value
Values Object.values obj string[]

Current Tags

  • 1.1.6                                ...           latest (a year ago)

15 Versions

  • 1.1.6                                ...           a year ago
  • 1.1.5                                ...           a year ago
  • 1.1.4                                ...           2 years ago
  • 1.1.3                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.10                                ...           2 years ago
  • 1.0.9                                ...           2 years ago
  • 1.0.8                                ...           2 years ago
  • 1.0.7                                ...           2 years ago
  • 1.0.6                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (6)

Copyright 2014 - 2017 © taobao.org |