1.0.0 • Published 3 years ago

stop-iteration-iterator v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

stop-iteration-iterator Version Badge

github actions coverage License Downloads

npm badge

Firefox 17-26 iterators throw a StopIteration object to indicate "done". This normalizes it.

Usage

var stopIterationIterator = require('stop-iteration-iterator');

var s = new Set([1, 2]);

var iterator = stopIterationIterator(s.keys());

iterator.next(); // { done: false, value: 1 }

Tests

Simply clone the repo, npm install, and run npm test

es-get-iteratoreasy-select-rn@infinitebrahmanuniverse/nolb-stop@saaspe/componentsexpand-react-bridgeluminos-ui-coresklif-ui-kitsklif-api@everything-registry/sub-chunk-2828jawwy-sdkjawwy_gamification_releasereact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgsklif-uireact-native-jawwy_samplegriffin-ui-library@wacoco/ysvelvet-customtest-library-123wifi_configuration_packagestanikionetesting-storybooktest-zeo-collectvision-camera-plugin-face-detectorvantiq-reactjulien-easy-modaljrennsoh88-react-native-scroll-indicatorjesh-calculationjnf-accesscontrol-rnttljordy-frijters-test-libk0ng_d1nosaur_quenak0ng_d1nosaur_quenbk0ng_d1nosaur_quenck0ng_d1nosaur_quendk0ng_d1nosaur_quenek0ng_d1nosaur_quenfk0ng_d1nosaur_quengk0ng_d1nosaur_quenhk0ng_d1nosaur_quenik0ng_d1nosaur_quenjk0ng_d1nosaur_quenkk0ng_d1nosaur_quennk0ng_d1nosaur_quenok0ng_d1nosaur_quenpk0ng_d1nosaur_quenqk0ng_d1nosaur_quenrk0ng_d1nosaur_quenlk0ng_d1nosaur_quenmk0ng_d1nosaur_quensk0ng_d1nosaur_quentk0ng_d1nosaur_quenuk0ng_d1nosaur_quenvk0ng_d1nosaur_quenwk0ng_d1nosaur_quenxk0ng_d1nosaur_quenyk0ng_d1nosaur_quenzhong1-utils@tlgeo/react-native-gdal@thinxviewx/core-rn@teyuto/react-player@vasosolo/multiselectcombobox@zotasys/nativeagent-get-agentadarshsinghal-editor-previewb4a-omegaawesome-module-kdarchlibraryappcharge-checkoutbackend-testing-core@podlubnaja/ui-kit@ponchodien/react-native-printer-imingenz-native-elementsframework_test_library_sixdeeframework_test_library_sixdee_newframework_test_library_sixdee_new_newgaurav-react-native-loopgamification-integration-new@sleepfinance/chaindogandev-simple-toastecr-sdkermis-media-react-sdkes-setes-react-bridgeexpo-renavigatefawaterak-online-paymentfawatrak-online-paymentfixed_form_builderfluent.adflow.reactnativesdkfluent.adflow.reactnativesdk-alphafmsl128981semzub@aysea/react-native-ui-library@brantalikp/rn-resizecustome-package-amincscg-product-carddemo-test-scrndesign-system-fitbank-450biometric-st
1.0.0

3 years ago