// package
es-get-iterator
type: "module"
// preferences
// replacements (1)
snippet::get-iterator
Simple or drop-in replacementThis package is no longer necessary. Every modern runtime provides a way to get the iterator function through the `Symbol.iterator` symbol.
// example
const iterator = obj[Symbol.iterator]?.();