diff --git a/constant.js b/constant.js deleted file mode 100644 index 1e2e0d160..000000000 --- a/constant.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Creates a function that returns `value`. - * - * @since 2.4.0 - * @category Util - * @param {*} value The value to return from the new function. - * @returns {Function} Returns the new constant function. - * @example - * - * const objects = times(2, constant({ 'a': 1 })); - * - * console.log(objects); - * // => [{ 'a': 1 }, { 'a': 1 }] - * - * console.log(objects[0] === objects[1]); - * // => true - */ -function constant(value) { - return () => value; -} - -export default constant;