Skip to content

Commit e4f560d

Browse files
committed
fix: Replaced map with forEach to slightly improve performance.
1 parent ad9a0ab commit e4f560d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module.exports.hsl = (h, s, l, a = 1) => {
4343
/** @type {number} */
4444
const sub2 = sub1 > 0.0088564516 ? sub1 : l / 903.2962962;
4545

46-
const _ = M.map(
46+
const _ = M.forEach(
4747
/**
4848
* @param {number} a
4949
* @param {number} b

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ripreact/hsl",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Minimal HSLᵤᵥ implementation.",
55
"main": "index.js",
66
"types": "index.d.ts",

0 commit comments

Comments
 (0)