like bindall but lazy ¯\_(ツ)_/¯
npm install lazybindall
Install Using Any ..
``
- npm install lazybindall
- npm install @sourcevault/lazybindall
`
Type Signature
`haskell`
lazybindall :: ( ob , methds ) -> obmethds
- ob
- methds
- obmethds
Simple Example
`javascript
var foo = {name:"sourcevault"}
var methds =
{
show:function()
{
console.log (this)
}
}
// ----------------------------------------------
var lazybindall = require ("lazybindall")
var bound = lazybindall ( foo , methds )
bound.show() // {name:"sourcevault"}
`
...for 10,000 object with 9 methods
| Method | Total Memory (MB) | Time (millisecond) |
|:----------------:|------------------:|--------------------:|
| .prototype | 6| 31|
| lazy closure | 9| 54|
| eagar closure | 49| 6,172|
|.. view detailed documentation ..
| --- |
- Initial 0.0.1` release with a single exported function.
- Documentation released using CC-BY-4.0 see LICENSE for details.