mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Replace wrapper with wrapped in docs/tests.
This commit is contained in:
@@ -6046,16 +6046,16 @@
|
||||
* @example
|
||||
*
|
||||
* var array = [1, 2];
|
||||
* var wrapper = _(array).push(3);
|
||||
* var wrapped = _(array).push(3);
|
||||
*
|
||||
* console.log(array);
|
||||
* // => [1, 2]
|
||||
*
|
||||
* wrapper = wrapper.commit();
|
||||
* wrapped = wrapped.commit();
|
||||
* console.log(array);
|
||||
* // => [1, 2, 3]
|
||||
*
|
||||
* wrapper.last();
|
||||
* wrapped.last();
|
||||
* // => 3
|
||||
*
|
||||
* console.log(array);
|
||||
@@ -6077,9 +6077,9 @@
|
||||
* @example
|
||||
*
|
||||
* var array = [1, 2];
|
||||
* var wrapper = _(array).concat([3], 4);
|
||||
* var wrapped = _(array).concat([3], 4);
|
||||
*
|
||||
* console.log(wrapper.value());
|
||||
* console.log(wrapped.value());
|
||||
* // => [1, 2, 3, 4]
|
||||
*
|
||||
* console.log(array);
|
||||
@@ -6102,17 +6102,17 @@
|
||||
* @example
|
||||
*
|
||||
* var array = [1, 2];
|
||||
* var wrapper = _(array).map(function(value) {
|
||||
* var wrapped = _(array).map(function(value) {
|
||||
* return Math.pow(value, 2);
|
||||
* });
|
||||
*
|
||||
* var other = [3, 4];
|
||||
* var otherWrapper = wrapper.plant(other);
|
||||
* var otherWrapped = wrapped.plant(other);
|
||||
*
|
||||
* otherWrapper.value();
|
||||
* otherWrapped.value();
|
||||
* // => [9, 16]
|
||||
*
|
||||
* wrapper.value();
|
||||
* wrapped.value();
|
||||
* // => [1, 4]
|
||||
*/
|
||||
function wrapperPlant(value) {
|
||||
|
||||
Reference in New Issue
Block a user