mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 16:17:50 +00:00
Complete identity removal module. (#2993)
This commit is contained in:
committed by
John-David Dalton
parent
39931f9eaa
commit
d460c42230
@@ -1,6 +1,3 @@
|
||||
import constant from '../constant.js'
|
||||
import identity from '../identity.js'
|
||||
|
||||
/**
|
||||
* The base implementation of `setToString` without support for hot loop shorting.
|
||||
*
|
||||
@@ -13,7 +10,7 @@ function baseSetToString(func, string){
|
||||
return Object.defineProperty(func, 'toString', {
|
||||
'configurable': true,
|
||||
'enumerable': false,
|
||||
'value': constant(string),
|
||||
'value': () => string,
|
||||
'writable': true
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user