This reference is an adaptation of the documentation at Underscore.js. It is interactive in its HTML5 form. Edit a CoffeeScript segment to try it. You can see the generated JavaScript when you write a CoffeeScript function by typing âshow nameâ after its definition. Example Underscore Underscore is a library for functional style programming. It provides 60-odd functions that support both the usual
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
Table of Contents Collections each, map, inject, detect, select, reject, all, any, include, invoke, pluck, max, min, sortBy, sortedIndex, toArray, size Arrays first, last, compact, flatten, without, uniq, intersect, zip, indexOf Functions bind, bindAll, delay, defer, wrap Objects keys, values, extend, clone, isEqual, isElement, isArray, isFunction, isUndefined Utility uniqueId, template Collection
Underscore.coffee (c) 2010 Jeremy Ashkenas, DocumentCloud Inc. Underscore is freely distributable under the terms of the MIT license. Portions of Underscore are inspired by or borrowed from Prototype.js, Oliver Steele's Functional, and John Resig's Micro-Templating. For all details and documentation: http://documentcloud.github.com/underscore/
Underscore.js 1.1.6ã®ã½ã¼ã¹ã³ã¼ããè¦ã¦ãã Table of Contentsã«ããã¨ããããã¸ã£ã³ã«åãããã¦ããã®ã§ãããã«æ²¿ã£ã¦èªãã Collections Arrays Functions Objects Utility Chaining æåã®åæåã¨ããåã決ããã¸ã ã°ãã¼ãã«å¤æ° Underscore.jsã¯ã¨ããã°ãã¼ãã«å¤æ°ã®ã¿ãæã£ã¦ãã¦ã以ä¸ã«ä¾¿å©ãªé¢æ°ã è©°ãè¾¼ãã æãã®ã©ã¤ãã©ãªã§ãã (function() { // Establish the root object, `window` in the browser, or `global` on the server. // rootã«ãªããªãã¸ã§ã¯ãããã©ã¦ã¶ã ã¨windowã ãã©underscore.jsã¯ãã©ã¦ã¶ä»¥å¤ã§ã使ããã®ã§thisã§ã°ãã¼ãã«ãã¨ã var root =
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}