mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Apply arrow function transform.
This commit is contained in:
@@ -18,9 +18,7 @@
|
||||
* // => true
|
||||
*/
|
||||
function constant(value) {
|
||||
return function() {
|
||||
return value;
|
||||
};
|
||||
return () => value;
|
||||
}
|
||||
|
||||
export default constant;
|
||||
|
||||
Reference in New Issue
Block a user