Filter a Javascript Array

less than 1 minute read

Filter a Javascript Array

Following code filters the array.

  var result = jsObjects.filter(obj => {
  		return obj.b === 6
	})

Leave a comment