Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.
/ prefer-local Public archive

⚙️ Prefer local boolean value over global

License

Notifications You must be signed in to change notification settings

mohitsinghs/prefer-local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

⚙️ Prefer local boolean value over global

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published