mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
Remove the need to call chain on _(…) wrapped values.
Former-commit-id: 21861c88e3ec9af955d844c025b50cb32c322809
This commit is contained in:
@@ -694,6 +694,7 @@
|
||||
|
||||
equal(lodash.some([false, true, false]), true, '_.some: ' + basename);
|
||||
equal(lodash.template('${a}', object), '${a}', '_.template should ignore ES6 delimiters: ' + basename);
|
||||
equal(lodash(1).clone() instanceof lodash, false, '_(...) wrapped values are not chainable by default: ' + basename);
|
||||
|
||||
start();
|
||||
});
|
||||
|
||||
@@ -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