You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
262 B
9 lines
262 B
3 years ago
|
var partial = require('./partial.js');
|
||
|
var before = require('./before.js');
|
||
|
|
||
|
// Returns a function that will be executed at most one time, no matter how
|
||
|
// often you call it. Useful for lazy initialization.
|
||
|
var once = partial(before, 2);
|
||
|
|
||
|
module.exports = once;
|