1.0.6 • Published 2 years ago

prefer-local v1.0.6

Weekly downloads
53
License
MIT
Repository
github
Last release
2 years ago

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
1.0.6

2 years ago

1.0.5

4 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago