Skip to content

Return whitelisted properties of an object, with default value.

License

Notifications You must be signed in to change notification settings

Txiaozhe/node-only-default

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-only-default

Return whitelisted properties of an object, with default value.

Quick Start

$ npm install only-default --save
const only = require('only-default');

const obj = {
  name: 'aaa',
  age: '20'
};

console.log(only(obj, {name: '', sex: -1}));

About

Return whitelisted properties of an object, with default value.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages