Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / node_modules / grunt-legacy-util / node_modules / lodash / _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;