Added the Porter Stemmer module to improve searches. This doesn't deal with some...
[yaffs-website] / node_modules / uncss / node_modules / lodash / internal / toFunction.js
1 var identity = require('../identity');
2
3 /**
4  * Converts `value` to a function if it's not one.
5  *
6  * @private
7  * @param {*} value The value to process.
8  * @returns {Function} Returns the function.
9  */
10 function toFunction(value) {
11   return typeof value == 'function' ? value : identity;
12 }
13
14 module.exports = toFunction;