Commit d21f00b20866259a0cc392aac18a581d68aa23be
Merge branch 'master' of https://github.com/mmckegg/mutant
Matt McKegg committed on 11/9/2017, 8:39:59 AMParent: f3288b0f154b91b996580e0c68b99ea612698769
Parent: 384839d826d48b42af545900fe4d88c8df62357d
Files changed
README.md | changed |
README.md | ||
---|---|---|
@@ -163,9 +163,9 @@ | ||
163 | 163 … | * `dict.keys()` return array of keys. |
164 | 164 … | |
165 | 165 … | ### Set |
166 | 166 … | |
167 | -Represents a collection like [Array](#Array) except without ordering. | |
167 … | +Represents a collection like [Array](#Array) except without ordering or duplicate values. | |
168 | 168 … | |
169 | 169 … | additional methods: |
170 | 170 … | * `set.add(value)` add `value` to the set. |
171 | 171 … | * `set.clear()` remove all items. |
@@ -391,11 +391,19 @@ | ||
391 | 391 … | |
392 | 392 … | |
393 | 393 … | ### onceIdle |
394 | 394 … | |
395 | -... | |
395 … | +delay a function until the next [idle callback](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback) | |
396 … | +without hammering the `requestIdleCallback` api | |
396 | 397 … | |
398 … | +``` js | |
399 … | +var onceIdle = require('mutant/once-idle') | |
400 … | +onceIdle(function () { | |
401 … | + //called once, at some later point (after rendering and such) | |
402 … | +}) | |
403 … | +``` | |
397 | 404 … | |
405 … | + | |
398 | 406 … | ### resolve |
399 | 407 … | |
400 | 408 … | ... |
401 | 409 … |
Built with git-ssb-web