mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 20:07:49 +00:00
Minor change to _.once to avoid an extra var swap.
This commit is contained in:
@@ -8060,7 +8060,7 @@
|
|||||||
* // `initialize` invokes `createApplication` once
|
* // `initialize` invokes `createApplication` once
|
||||||
*/
|
*/
|
||||||
function once(func) {
|
function once(func) {
|
||||||
return before(func, 2);
|
return before(2, func);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user