mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 00:27:50 +00:00
Fix _.map doc example. [ci skip]
This commit is contained in:
committed by
John-David Dalton
parent
67cd43d97a
commit
473d059efd
@@ -7690,11 +7690,11 @@
|
||||
* return n * n;
|
||||
* }
|
||||
*
|
||||
* _.map([1, 2], square);
|
||||
* // => [3, 6]
|
||||
* _.map([4, 8], square);
|
||||
* // => [16, 64]
|
||||
*
|
||||
* _.map({ 'a': 1, 'b': 2 }, square);
|
||||
* // => [3, 6] (iteration order is not guaranteed)
|
||||
* _.map({ 'a': 4, 'b': 8 }, square);
|
||||
* // => [16, 64] (iteration order is not guaranteed)
|
||||
*
|
||||
* var users = [
|
||||
* { 'user': 'barney' },
|
||||
|
||||
Reference in New Issue
Block a user