Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (16 sloc) 254 Bytes
exports.map = (o, fn) {
ret = []
for key, val in o
ret.push fn(val, key)
ret
}
exports.detect = (o, fn) {
for key, val in o {
if fn(val, key)
return val
}
}
exports.times = (n, fn) {
for var i=0; i < n; i++
fn.call @, i
}
Jump to Line
Something went wrong with that request. Please try again.