Skip to content

Instantly share code, notes, and snippets.

'use strict'
const characters = [
{ name: 'ironman', env: 'marvel' },
{ name: 'black_widow', env: 'marvel' },
{ name: 'wonder_woman', env: 'dc_comics' },
]
characters
.filter( propEq('env', 'marvel') )