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")
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.