{ "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": "ba8e5f17500d1e5428f4ca7fcc8095934a7ad3aa496b35465e8f7799f1715aaa" } }, { "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": "bda519858588ad61c9200acbb4ea5ce66630eb2ed7ceda96d12518b772b986b9" } }, { "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": "061b791456507197b9be0ff9b791b830fe0b550823868075bbe04962501f83a3" } }, { "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": "805f11e2f230c3a6b7dc590fcee27b4083b2188b6f1d0a8afb93868891cdba22" } }, { "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": "aeabb3d1d2be2d44fd8a20da3b069fdd1a8ad963f27e3e1ae9f5e8b40a8908cb" } }, { "id": "arrayToHtmlList", "type": "snippetListing", "title": "arrayToHtmlList", "attributes": { "text": "Converts the given array elements into `