Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
Underscore의 map 함수 사용 예
node v6.17.1
version:
master
endpoint
share
tweet
var _ = require('underscore'); function capitalize(word, index) { return index + ": " + word[0].toUpperCase() + word.substr(1); } _.map(['apple', 'banana', 'melon'], capitalize);
Loading…
no comments
sign in
to comment