Where

Where is a filtering function over a data set and returns one or more elements matching the criteria of a lambda expression.

JavaScript (Filter)

var pencilsH1B = pencils.filter((pencil) => {
    return pencil.type === "H1B";
});