This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

scopable

1.0.1 • Public • Published

Scopable

...

About

Please refer to the examples below.

Usage:

Example 1:

var scopable = require('scopable');

var scope = scopable([1, 2, 3, 4]);

scope.push('slice', scopable.invoke);

scope.apply({ slice: 2 }); //=> [3, 4]

Example 2:

var scopable = require('scopable');

var scope = scopable({});

scope.push('query', scopable.assign);
scope.push('limit', scopable.assign);

scope.apply({ query: 'test', anything: 'invalid' }); //=> { query: 'test' }
scope.apply({ query: 'test', limit: 10 }); //=> { query: 'test', limit: 10 }

Readme

Keywords

Package Sidebar

Install

npm i scopable

Weekly Downloads

0

Version

1.0.1

License

CC BY-SA 4.0

Last publish

Collaborators

  • haggen