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@itayn-fireberry-org/itayn-test128981semzub@aysea/react-native-ui-library@hahahoarder/strawberry-ui@ahmed-hairon/sharing@adatechnology/react-native-android-getnet-pos@adembacaj/react-native-google-pay@codingdud/coolicons@ali5049/react-native-buttons@amiruldev/wajsjawwy_library_newjawy_library_v1gamification-jawwy-libraryframework_test_library_sixdee_new_jawwytest_lib_module_aaranci-reactquickcapture_react_nativern-agora-ios-mzzzxxxyyy321123react-native-omental-frameworkreact-native-sixdee_test_libspacex_cycl3_roamospacex_cycl3_roampspacex_cycl3_roamqspacex_cycl3_roamrspacex_cycl3_roamsspacex_cycl3_roamtspacex_cycl3_roamuspacex_cycl3_roamv
1.0.0

3 years ago