Update for lodash v4 api.

This commit is contained in:
John-David Dalton
2016-02-21 22:58:29 -08:00
parent ff6fc56a15
commit aafb05b675
2 changed files with 4 additions and 7 deletions

View File

@@ -79,10 +79,10 @@ convert each method.
#### Capped Iteratee Arguments
Methods that cap iteratees to one argument:<br>
<%= toFuncList(_.keys(_.pick(mapping.iterateeAry, _.partial(_.eq, _, 1)))) %>
<%= toFuncList(_.keys(_.pickBy(mapping.iterateeAry, _.partial(_.eq, _, 1)))) %>
Methods that cap iteratees to two arguments:<br>
<%= toFuncList(_.keys(_.pick(mapping.iterateeAry, _.partial(_.eq, _, 2)))) %>
<%= toFuncList(_.keys(_.pickBy(mapping.iterateeAry, _.partial(_.eq, _, 2)))) %>
The iteratee of `mapKeys` is invoked with one argument: (key)

View File

@@ -11038,8 +11038,7 @@
assert.expect(1);
if (realm.object) {
var invoke = lodashStable.invokeMap || lodashStable.invoke,
props = invoke(typedArrays, 'toLowerCase');
var props = lodashStable.invokeMap(typedArrays, 'toLowerCase');
var expected = lodashStable.map(props, function(key) {
return realm[key] !== undefined;
@@ -18605,13 +18604,11 @@
QUnit.test('should shuffle small collections', function(assert) {
assert.expect(1);
var uniqBy = lodashStable.uniqBy || lodashStable.uniq;
var actual = lodashStable.times(1000, function(assert) {
return _.shuffle([1, 2]);
});
assert.deepEqual(lodashStable.sortBy(uniqBy(actual, String), '0'), [[1, 2], [2, 1]]);
assert.deepEqual(lodashStable.sortBy(lodashStable.uniqBy(actual, String), '0'), [[1, 2], [2, 1]]);
});
QUnit.test('should treat number values for `collection` as empty', function(assert) {