https://github.com/squirrel-forge/node-objection
Advanced plain object handling, manipulation and extraction
https://github.com/squirrel-forge/node-objection
extraction manipulation node object pojo
Last synced: about 1 month ago
JSON representation
Advanced plain object handling, manipulation and extraction
- Host: GitHub
- URL: https://github.com/squirrel-forge/node-objection
- Owner: squirrel-forge
- License: mit
- Created: 2021-06-17T11:26:21.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-12-04T19:15:27.000Z (over 4 years ago)
- Last Synced: 2024-04-26T12:21:39.513Z (about 2 years ago)
- Topics: extraction, manipulation, node, object, pojo
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# node-objection
Advanced plain object handling, manipulation and extraction.
## Install
```
# npm i @squirrel-forge/node-objection
```
## Usage
Get the module reference.
```javascript
const objm = require( '@squirrel-forge/node-objection' );
```
Following methods/functions are available:
```javascript
objm.cloneObject( source, recursive = false ) : Object
objm.isPojo( obj ) : boolean
objm.mergeArray( [ unique, clone,] array1, array2[, ...] ) : Array
objm.mergeObject( target, changes, extend = false, recursive = false, arrayClone = false, noArray = false ) : Object
objm.strAccess( strpath, subject, exact = true, debug = console ) : *
objm.strCreate( strpath, value, target, replace = false, any = false, debug = console ) : Object
```