JSFiddle - React, Tailwind, and code Playground

by Emily Humphrey

JavaScript

var articles = [{title: "Useful Sass Snippets", subtitle: "Automating annoying systems", tags: [], keywords: "Sass, Mixins, Functions, SCSS, Beginner"}{title: "Error Handling in Gulp.js", subtitle: "Get notified and stop checking the console", tags: [], keywords: "Error handling, Errors, Gulp, Gulp-plumber, Gulp-notify"}{title: "Practical Jade", subtitle: "You know, if that's your thing", tags: [HTML,, Jade,, JavaScript,], keywords: "Jade, JavaScript, HTML Preprocessor, Jade and JavaScript"}{title: "Reddit NFL and Sass Maps", subtitle: "How I Learned to Stop Worrying and Love the Map", tags: [Sass,], keywords: "Sass, Reddit, NFL, Sass Maps, How to use Sass Maps"}{title: "Learning Gulp", subtitle: "Getting started with the font end factory", tags: [Sass,, JavaScript,, Bash,], keywords: "Gulp.js, Gulp, Javascript, Learning Gulp, Start with Gulp"}],
    results = [];

function findPlayer(name){
    for(var i = 0, x = articles.length; i < x; i++){
        for (var k in articles[i]) {
            if(articles[i][k].toUpperCase().includes(name.toUpperCase())){
                results.push(articles[i]);
            }
        }
    }
    console.log(results);
}
findPlayer("Flexbox")