Skip to content

Inject object properties into a callback using argument identifiers

License

Notifications You must be signed in to change notification settings

rit/icemaker-unpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

icemaker-unpack

Synopsis

Spread object proporties or array elements into a callback function. It makes unit tests more expressive and concise.

Usage

var numbers = {
  "one": 1,
  "two": 2,
  "three": 3
}

const unpack = require('icemaker-unpack');
unpack(numbers, (one, two, three) => {
  let sum = one + two + three;
  assert sum === 6
});

License

MIT

About

Inject object properties into a callback using argument identifiers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published