mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Fix spelling mistake
This commit is contained in:
committed by
John-David Dalton
parent
21713801ad
commit
2d3d66e9d1
@@ -902,17 +902,17 @@ _.sortedIndex([20, 30, 50], 40);
|
||||
// => 2
|
||||
|
||||
var dict = {
|
||||
'wordToNumber': { 'twenty': 20, 'thirty': 30, 'fourty': 40, 'fifty': 50 }
|
||||
'wordToNumber': { 'twenty': 20, 'thirty': 30, 'forty': 40, 'fifty': 50 }
|
||||
};
|
||||
|
||||
// using `callback`
|
||||
_.sortedIndex(['twenty', 'thirty', 'fifty'], 'fourty', function(word) {
|
||||
_.sortedIndex(['twenty', 'thirty', 'fifty'], 'forty', function(word) {
|
||||
return dict.wordToNumber[word];
|
||||
});
|
||||
// => 2
|
||||
|
||||
// using `callback` with `thisArg`
|
||||
_.sortedIndex(['twenty', 'thirty', 'fifty'], 'fourty', function(word) {
|
||||
_.sortedIndex(['twenty', 'thirty', 'fifty'], 'forty', function(word) {
|
||||
return this.wordToNumber[word];
|
||||
}, dict);
|
||||
// => 2
|
||||
@@ -5070,4 +5070,4 @@ IE < `8` can't access characters by index and IE `8` can only access characters
|
||||
<!-- /div -->
|
||||
|
||||
|
||||
[1]: #arrays "Jump back to the TOC."
|
||||
[1]: #arrays "Jump back to the TOC."
|
||||
|
||||
Reference in New Issue
Block a user