diff --git a/lib/fp/template/doc/wiki.jst b/lib/fp/template/doc/wiki.jst index 7a429ab17..7db6eaa90 100644 --- a/lib/fp/template/doc/wiki.jst +++ b/lib/fp/template/doc/wiki.jst @@ -14,15 +14,15 @@ In a browser: ``` @@ -51,12 +51,12 @@ Iteratee arguments are capped to avoid gotchas with variadic iteratees. // The `lodash/map` iteratee receives three arguments: // (value, index|key, collection) _.map(['6', '8', '10'], parseInt); -// → [6, NaN, 2] +// ➜ [6, NaN, 2] // The `lodash/fp/map` iteratee is capped at one argument: // (value) fp.map(parseInt)(['6', '8', '10']); -// → [6, 8, 10] +// ➜ [6, 8, 10] ``` Methods that cap iteratees to one argument:
@@ -73,13 +73,13 @@ Methods have fixed arities to support auto-currying. ```js // `lodash/padStart` accepts an optional `chars` param. _.padStart('a', 3, '-') -// → '--a' +// ➜ '--a' // `lodash/fp/padStart` does not. fp.padStart(3)('a'); -// → ' a' +// ➜ ' a' fp.padCharsStart('-')(3)('a'); -// → '--a' +// ➜ '--a' ``` Methods with a fixed arity of one:
@@ -102,13 +102,13 @@ Method arguments are rearranged to make composition easier. // (collection, iteratee) var compact = _.partial(_.filter, _, Boolean); compact(['a', null, 'c']); -// → ['a', 'c'] +// ➜ ['a', 'c'] // `lodash/fp/filter` is iteratee-first data-last: // (iteratee, collection) var compact = fp.filter(Boolean); compact(['a', null, 'c']); -// → ['a', 'c'] +// ➜ ['a', 'c'] ``` ##### Most methods follow these rules @@ -161,11 +161,11 @@ arguments of the curried returned function. ```js // The equivalent of `2 > 5`. _.gt(2)(5); -// → false +// ➜ false // The equivalent of `_.gt(5, 2)` or `5 > 2`. _.gt(_, 2)(5); -// → true +// ➜ true ``` ## Chaining