This package has been deprecated

Author message:

This package is no longer maintained. Use at your own risk.

prefer-local

1.0.6 • Public • Published

prefer-local

GitHub Workflow Status npm version node-current license MIT

Choosing between global and local values
Prefers local values over global when choosing between two

Install

Install with npm

npm install prefer-local
// or
yarn add prefer-local

Uses

Useful for places where we need to choose between boolean value of a property inside an object (if exists) and another boolean value and prefer inner property. For Example, while choosing between local option in an object and a global option. If local option is set to false returns false even if global option is true.

  • src - source object containing inner property
  • key - key of the inner property
  • prop - value of global property

Readme

Keywords

Package Sidebar

Install

npm i prefer-local

Weekly Downloads

14

Version

1.0.6

License

MIT

Unpacked Size

8.78 kB

Total Files

7

Last publish

Collaborators

  • mohitsingh