mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-17 17:23:41 +02:00
Use 'Array.prototype.forEach' instead of '_.each' and '_.forEach'
This commit is contained in:
parent
d87fd095c0
commit
bd8009386d
19 changed files with 74 additions and 82 deletions
|
@ -98,7 +98,7 @@ var instantCommands = [
|
|||
intl.str('show-all-commands'),
|
||||
'<br/>'
|
||||
];
|
||||
_.each(allCommands, function(regex, command) {
|
||||
allCommands.forEach(function(regex, command) {
|
||||
lines.push(command);
|
||||
});
|
||||
|
||||
|
@ -144,7 +144,7 @@ var getAllCommands = function() {
|
|||
allCommands[vcs + ' ' + method] = regex;
|
||||
});
|
||||
});
|
||||
_.each(toDelete, function(key) {
|
||||
toDelete.forEach(function(key) {
|
||||
delete allCommands[key];
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue