Skip to content

Commit

Permalink
fix: Replaced map with forEach to slightly improve performance.
Browse files Browse the repository at this point in the history
  • Loading branch information
miyaokamarina committed Oct 19, 2019
1 parent ad9a0ab commit e4f560d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports.hsl = (h, s, l, a = 1) => {
/** @type {number} */
const sub2 = sub1 > 0.0088564516 ? sub1 : l / 903.2962962;

const _ = M.map(
const _ = M.forEach(
/**
* @param {number} a
* @param {number} b
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ripreact/hsl",
"version": "1.0.0",
"version": "1.0.1",
"description": "Minimal HSLᵤᵥ implementation.",
"main": "index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit e4f560d

Please # to comment.