Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 underscore.d.ts
README.md

underscore.d.ts

underscore.d.ts is instance definition of underscore on typescript.

HOW TO USE

Client

///<reference path='underscore.d.ts'/>
declare var _ :underscore;

Node

///<reference path='node.d.ts'/>
///<reference path='underscore.d.ts'/>
var _ : underscore = require('./underscore-min')

EXAMPLE

_.each([1,2,3], (i:number) => {
  console.log(i);
});

var arr = _.map([1,2,3], i => i)
var sum = _.reduce([1,2,3], (a,b) => { return a + b }, 0)

Something went wrong with that request. Please try again.