Skip to content

Instantly share code, notes, and snippets.

@Lodo4ka
Created September 20, 2018 09:54
Show Gist options
  • Save Lodo4ka/ae183b43a5b7be20769e53362adf919e to your computer and use it in GitHub Desktop.
Save Lodo4ka/ae183b43a5b7be20769e53362adf919e to your computer and use it in GitHub Desktop.
const isIterable = object =>
object != null && typeof object[Symbol.iterator] === 'function';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment