mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 17:37:50 +00:00
Remove the need to call chain on _(…) wrapped values.
Former-commit-id: 21861c88e3ec9af955d844c025b50cb32c322809
This commit is contained in:
@@ -1901,8 +1901,8 @@
|
||||
var wrapped = _({ '0': 1, 'length': 1 });
|
||||
wrapped.shift();
|
||||
|
||||
deepEqual(wrapped.keys(), ['length']);
|
||||
equal(wrapped.first(), undefined);
|
||||
deepEqual(wrapped.keys().value(), ['length']);
|
||||
equal(wrapped.first().value(), undefined);
|
||||
});
|
||||
}());
|
||||
|
||||
@@ -1915,8 +1915,8 @@
|
||||
var wrapped = _({ '0': 1, 'length': 1 });
|
||||
wrapped.splice(0, 1);
|
||||
|
||||
deepEqual(wrapped.keys(), ['length']);
|
||||
equal(wrapped.first(), undefined);
|
||||
deepEqual(wrapped.keys().value(), ['length']);
|
||||
equal(wrapped.first().value(), undefined);
|
||||
});
|
||||
}());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user