{ "data": [ { "id": "all", "type": "snippetListing", "title": "all", "attributes": { "text": "Returns `true` if the provided predicate function returns `true` for all elements in a collection, `false` otherwise.\n\nUse `Array.prototype.every()` to test if all elements in the collection return `true` based on `fn`.\nOmit the second argument, `fn`, to use `Boolean` as a default.\n\n", "tags": [ "array", "function", "beginner" ] }, "meta": { "hash": "1b37192f25e1bfcf9f7bae57fc0c1ca05d02016c0c4ab50fb3f6ac6a7073e949" } }, { "id": "allEqual", "type": "snippetListing", "title": "allEqual", "attributes": { "text": "Check if all elements in an array are equal.\n\nUse `Array.prototype.every()` to check if all the elements of the array are the same as the first one.\nElements in the array are compared using the strict comparison operator, which does not account for `NaN` self-inequality.\n\n", "tags": [ "array", "function", "beginner" ] }, "meta": { "hash": "9ff2aa6f079de4569beb1acde0caa8d4f35539e000bcf4ca52c56a824fc3cb63" } }, { "id": "any", "type": "snippetListing", "title": "any", "attributes": { "text": "Returns `true` if the provided predicate function returns `true` for at least one element in a collection, `false` otherwise.\n\nUse `Array.prototype.some()` to test if any elements in the collection return `true` based on `fn`.\nOmit the second argument, `fn`, to use `Boolean` as a default.\n\n", "tags": [ "array", "function", "beginner" ] }, "meta": { "hash": "95795b2d98d3970eed4066134d947c2c6abf1f0ce1f7dfe705095bab64f44ae5" } }, { "id": "approximatelyEqual", "type": "snippetListing", "title": "approximatelyEqual", "attributes": { "text": "Checks if two numbers are approximately equal to each other.\n\nUse `Math.abs()` to compare the absolute difference of the two values to `epsilon`.\nOmit the third parameter, `epsilon`, to use a default value of `0.001`.\n\n", "tags": [ "math", "beginner" ] }, "meta": { "hash": "062de86ad6c328483fa2760b5cbf79ceb40ef2efa87a74a5704423207a538657" } }, { "id": "arrayToCSV", "type": "snippetListing", "title": "arrayToCSV", "attributes": { "text": "Converts a 2D array to a comma-separated values (CSV) string.\n\nUse `Array.prototype.map()` and `Array.prototype.join(delimiter)` to combine individual 1D arrays (rows) into strings.\nUse `Array.prototype.join('\\n')` to combine all rows into a CSV string, separating each row with a newline.\nOmit the second argument, `delimiter`, to use a default delimiter of `,`.\n\n", "tags": [ "array", "string", "utility", "intermediate" ] }, "meta": { "hash": "79164ada1eb58d8a611c548f0d5c85d1eb1c0b043fcc6b9f680b279080c55bb0" } }, { "id": "arrayToHtmlList", "type": "snippetListing", "title": "arrayToHtmlList", "attributes": { "text": "Converts the given array elements into `