{"pageProps":{"posts":[{"slug":"javascript-get-index-of-an-item-in-array","title":"How to get index of an item in an array in JavaScript","author":{"name":"Suraj Sharma","picture":""},"date":"2021-10-31T00:00:00.000Z","url":"javascript-get-index-of-an-item-in-array","hashtags":"#javascript #array","excerpt":"Learn to find index of an item in a given array in JavaScript using arrays built-in methods"},{"slug":"javascript-array-sort-alphanumeric","title":"How to sort an array of alphanumeric strings in JavaScript","author":{"name":"Suraj Sharma","picture":""},"date":"2021-06-13T00:00:00.000Z","url":"javascript-array-sort-alphanumeric","hashtags":"#javascript #array","excerpt":"Learn to sort an array of alphanumeric values in JavaScript using the String.localeCompare() method"},{"slug":"javascript-get-first-n-elements-of-array","title":"How to get first N elements of an array in JavaScript","author":{"name":"Suraj Sharma","picture":""},"date":"2021-06-07T00:00:00.000Z","url":"javascript-get-first-n-elements-of-array","hashtags":"#javascript #array","excerpt":"Get first N number of elements of an array in JavaScript in two simple ways"},{"slug":"javascript-array-remove-empty-elements","title":"How to remove empty elements of an array in JavaScript","author":{"name":"Suraj Sharma","picture":""},"date":"2021-06-01T00:00:00.000Z","url":"javascript-array-remove-empty-elements","hashtags":"#javascript #array","excerpt":"Learn to remove empty and falsy elements of an array in JavaScript using Array.filter method"},{"slug":"javascript-find-index-in-array-of-objects","title":"How to find index in an array of objects in JavaScript","author":{"name":"Suraj Sharma","picture":""},"date":"2021-05-29T00:00:00.000Z","url":"javascript-find-index-in-array-of-objects","hashtags":"#javascript #array","excerpt":"Learn how you can find index of an item in an array of object in JavaScript using Array.findIndex() method"},{"slug":"javascript-array-get-last-element","title":"How to get the last element of an Array in JavaScript","author":{"name":"Suraj Sharma","picture":""},"date":"2020-11-26T12:00:00.000Z","url":"javascript-array-get-last-element","hashtags":"#javascript #array","excerpt":"In this tutorial, I have discussed 2 ways to get the last element of an Array in JavaScript"},{"slug":"is-javascript-array-empty","title":"How to check if an array is empty in JavaScript","author":{"name":"Suraj Sharma","picture":""},"date":"2020-11-18T12:00:00.000Z","url":"is-javascript-array-empty","hashtags":"#javascript #array","excerpt":"Learn the easiest way to find whether the given array is empty or not"},{"slug":"javascript-array-remove-first-element","title":"How to remove the first element of an array in JavaScript","author":{"name":"Suraj Sharma","picture":""},"date":"2020-11-17T12:00:00.000Z","url":"javascript-array-remove-first-element","hashtags":"#javascript #array","excerpt":"Learn to use Array.shift() method and array destructuring to remove the first element of an array in JavaScript"},{"slug":"is-javascript-object-an-array","title":"How to check if an object is an array in JavaScript","author":{"name":"Suraj Sharma","picture":""},"date":"2020-11-16T12:00:00.000Z","url":"is-javascript-object-an-array","hashtags":"#javascript #array","excerpt":"Learn how you can use Array.isArray method to check if an object is an array in JavaScript"},{"slug":"javascript-array-unshift-method","title":"How to add an element at the beginning of an array in JavaScript","author":{"name":"Suraj Sharma","picture":""},"date":"2020-11-15T12:10:00.000Z","url":"javascript-array-unshift-method","hashtags":"#javascript #array","excerpt":"In this tutorial, you will learn how you can add a new element at the beginning of an array in JavaScript using unshift() method and array destructuring"},{"slug":"break-out-of-foreach-javascript","title":"How to break out of the Array forEach method in JavaScript","author":{"name":"Suraj Sharma","picture":""},"date":"2020-09-24T01:00:00.000Z","url":"break-out-of-foreach-javascript","hashtags":"#javascript #array","excerpt":"In this tutorial, you will learn to break out of the array.forEach method in JavaScript"},{"slug":"javascript-array-first-element","title":"How to get the first element of an array in JavaScript","author":{"name":"Suraj Sharma","picture":""},"date":"2020-09-24T00:00:00.000Z","url":"javascript-array-first-element","hashtags":"#javascript #array","excerpt":"In this tutorial, I have discussed 3 ways to get the first element of a JavaScript array"},{"slug":"check-object-in-javascript-array","title":"How to check if a value exists in an array of objects in JavaScript","author":{"name":"Suraj Sharma","picture":""},"date":"2020-09-17T00:00:00.000Z","url":"check-object-in-javascript-array","hashtags":"#javascript #array","excerpt":"2 JavaScript Array methods to check if a value is present in an array of objects; some() and find() methods."},{"slug":"javascript-array-includes-value","title":"How to check if an Array includes a value in JavaScript","author":{"name":"Suraj Sharma","picture":""},"date":"2020-09-12T12:00:00.000Z","url":"javascript-array-includes-value","hashtags":"#javascript #array","excerpt":"In this tutorial, I have discussed 5 ways to check if an JavaScript array includes a value"},{"slug":"merge-arrays-in-javascript","title":"How to merge two or more arrays in JavaScript","author":{"name":"Suraj Sharma","picture":""},"date":"2020-09-07T22:00:00.000Z","url":"merge-arrays-in-javascript","hashtags":"#javascript #array #es6","excerpt":"In this tutorial, I have discussed two ways to merge two or more arrays in JavaScript"},{"slug":"array-to-string-in-javascript","title":"How to convert an Array to a String in JavaScript","author":{"name":"Suraj Sharma","picture":""},"date":"2020-09-03T14:00:00.000Z","url":"array-to-string-in-javascript","hashtags":"#javascript #string #array","excerpt":"4 different ways to convert an array to a string in JavaScript - forEach, join, reduce, and toString methods."},{"slug":"for-loop-in-react","title":"How to loop through an array of objects in React","author":{"name":"Suraj Sharma","picture":""},"date":"2020-08-26T00:00:00.000Z","url":"for-loop-in-react","hashtags":"#react #array","excerpt":"for-of loop and array.map() method, a practical guide on how to loop through an array of objects in React"}]},"__N_SSG":true}