mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
_.barrier -> _.after, switch the order of arguments ... fix test formatting.
This commit is contained in:
@@ -511,7 +511,7 @@
|
||||
};
|
||||
|
||||
// Returns a function that will only be executed after being called N times.
|
||||
_.barrier = function(func, times) {
|
||||
_.after = function(times, func) {
|
||||
return function() {
|
||||
if (--times === 0) { return func.apply(this, arguments); }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user