mirror of
https://github.com/xlorepdarkhelm/numinar-coding-project.git
synced 2026-09-06 10:08:25 -04:00
9 lines
172 B
JavaScript
9 lines
172 B
JavaScript
|
|
// Predicate-generating function. Often useful outside of Underscore.
|
||
|
|
function constant(value) {
|
||
|
|
return function() {
|
||
|
|
return value;
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
module.exports = constant;
|