first commit

This commit is contained in:
Stefan Hacker
2026-01-29 01:16:54 +01:00
commit 32a7dc74e1
12111 changed files with 2480685 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
var identity = require('./identity');
/**
* Casts `value` to `identity` if it's not a function.
*
* @private
* @param {*} value The value to inspect.
* @returns {Function} Returns cast function.
*/
function castFunction(value) {
return typeof value == 'function' ? value : identity;
}
module.exports = castFunction;