2008-08-26から1日間の記事一覧

prototype.js分析 Enumerable

sortBy() 基準に沿ってソートする <script> Array.prototype._each = function(iterator){ for(var i=0, l=this.length; i

prototype.js分析 Enumerable

min() 要素の最小値を取得する <script> Array.prototype._each = function(iterator){ for(var i=0, l=this.length; i

prototype.js分析 Enumerable

max() 要素の最大値を取得する <script> Array.prototype._each = function(iterator){ for(var i=0, l=this.length; i

prototype.js分析 Enumerable

invoke() 各要素にメソッドを適用する <script> Array.prototype._each = function(iterator){ for(var i=0, l=this.length; i

prototype.js分析 Enumerable

pluck() 要素のプロパティを抜き出す <script> Array.prototype._each = function(iterator){ for(var i=0, l=this.length; i

prototype.js分析 Enumerable

inGroupsOf() 配列をグループ分けして、要素が足りない場合はオプションで埋める <script> Array.prototype._each = function(iterator){ for(var i=0, l=this.length; i

prototype.js分析 Enumerable

grep() 条件にマッチする要素を取り出して処理する <script> Array.prototype._each = function(iterator){ for(var i=0, l=this.length; i

prototype.js分析 Enumerable

findAll(), fileter(), select 条件にあてはまる要素を全て見つける <script> Array.prototype._each = function(iterator){ for(var i=0, l=this.length; i

prototype.js分析 Enumerable

detect() / find() 要素を見つける <script> Array.prototype._each = function(iterator){ for(var i=0, l=this.length; i

prototype.js分析 Enumerable

include() 指定された値があるか <script> Array.prototype._each = function(iterator){ for(var i=0, l=this.length; i

prototype.js分析 Enumerable

any ある要素が条件を満たしているか <script> Array.prototype._each = function(iterator){ for(var i=0, l=this.length; i