Skip to content

Commit

Permalink
updated readme d3h.i
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Apr 4, 2014
1 parent 973e150 commit 0091bcd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,16 @@ Same chaining as `d3h.d` but operates on the second argument, usually the index
});
```

If you want to return the index element, you need to execute the function to create the callback

```js
.y(d3h.i())
// same as
.y(function (d, i) {
return i;
});
```

### d3h.noop

Same as `function () {}`
Expand Down

0 comments on commit 0091bcd

Please sign in to comment.