Add lazy at tests to ensure it works with string index values.

This commit is contained in:
John-David Dalton
2015-11-14 18:09:59 -08:00
parent 783c23cbfb
commit 64a7503196
2 changed files with 16 additions and 11 deletions

View File

@@ -13896,7 +13896,7 @@
LazyWrapper.prototype.at = rest(function(paths) {
paths = baseFlatten(paths);
return (paths.length == 1 && isIndex(paths[0]))
? this.slice(paths[0], paths[0] + 1)
? this.slice(paths[0], +paths[0] + 1)
: new LazyWrapper(this);
});