JSFiddle - React, Tailwind, and code Playground

by burkeholland

HTML

<script src="https://getfirebug.com/firebug-lite.js"></script>

JavaScript

(function($) {
    
    var allStarCast = [
        { firstName: "Zack", lastName: "Morris" },
        { firstName: "Kelly", lastName: "Kapowski" },
        { firstName: "Lisa", lastName: "Turtle" },
        { firstName: "Screech", lastName: "Powers" },
        { firstName: "A.C.", lastName: "Slater" },
        { firstName: "Jessie", lastName: "Spano" },
        { firstName: "Richard", lastName: "Belding" }
    ]
    
    // iterate through the cast and find zack and kelly
    
    var wordsCutestCouple = $.grep(allStarCast, function(actor) {
        return (actor.firstName === "Zack" || actor.firstName === "Kelly");
    });
    
    console.log(wordsCutestCouple);

}(jQuery));