mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Add lodash.prototype methods that return non-wrapped values.
Former-commit-id: b7ecb8c91ec9647827a80a297b966639c6580ef0
This commit is contained in:
@@ -697,8 +697,11 @@
|
||||
|
||||
object = lodash(1);
|
||||
equal(object.clone() instanceof lodash, false, '_(...) wrapped values are not chainable by default: ' + basename);
|
||||
equal(String(object) === '1', false, '_.prototype should not implement its own `toString` method: ' + basename);
|
||||
equal(Number(object) === 1 , false, '_.prototype should not implement its own `valueOf` method: ' + basename);
|
||||
equal(String(object) === '1', false, '_#toString should not be implemented: ' + basename);
|
||||
equal(Number(object) === 1 , false, '_#valueOf should not be implemented: ' + basename);
|
||||
|
||||
object.chain();
|
||||
equal(typeof object.has('x') == 'object', true, '_#has returns wrapped values when chaining: ' + basename);
|
||||
|
||||
start();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user