블로그 이미지
플로거
Android/J2EE/Web/Spring/Database

calendar

        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

Notice

Statistics Graph
2018.12.31 02:47 Programming/JavaScript

Underscore.js


Underscore is a JavaScript library that provides a whole mess of useful functional programming helpers without extending any built-in objects. It’s the answer to the question: “If I sit down in front of a blank HTML page, and want to start being productive immediately, what do I need?” … and the tie to go along with jQuery's tux and

underscore.js 는 내장객체를 확장하지 않고, 사용하기 쉬운 함수 프로그래밍에 도움을 주는 자바스크립트 라이브러리 입니다.


https://github.com/jashkenas/underscore


Downloads

Development Version (1.9.1)
 60kb, Uncompressed with Plentiful Comments


Production Version (1.9.1)

6.5kb, Minified and Gzipped  (Source Map)


Installation

  • Node.js npm install underscore
  • Meteor.js meteor add underscore
  • Require.js require(["underscore"], ...
  • Bower bower install underscore
  • Component component install jashkenas/underscore

유용한 함수들

uniq_.uniq(array, [isSorted], [iteratee]) Alias: unique 
findIndex_.findIndex(array, predicate, [context]) 
indexOf_.indexOf(array, value, [isSorted])

contains_.contains(list, value, [fromIndex]) Aliases: includeincludes 

isEmpty_.isEmpty(object) 

'Programming > JavaScript' 카테고리의 다른 글

[Javascript] Underscore.js  (0) 2018.12.31
posted by 훈즈 플로거