Skip to content

Commit

Permalink
add size vs length property in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
xgbuils committed Sep 27, 2015
1 parent dbb9896 commit d48c4cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ Push the `element` at the binary heap and returns its new size.
**Time complexity:** *O(log(n))* such that `n === this.size`
## FAQ
#### Why do BinaryHeap have the property size and not length?
I want to keep the [ECMAScript 6 conventions](http://exploringjs.com/es6/ch_maps-sets.html#leanpub-auto-why-do-maps-and-sets-have-the-property-size-and-not-length).
## Testing
As npm package:
Expand Down

0 comments on commit d48c4cd

Please sign in to comment.