Skip to content

Commit 0f09c29

Browse files
committed
Fix colorNameList
1 parent f9f9def commit 0f09c29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ const parserColor = require('parse-color');
66
const nearestColor = require('nearest-color');
77

88
const colorList = {};
9+
const colorNameList = Object.keys(colorObject);
910

10-
Object.keys(colorObject).forEach((key) => {
11+
colorNameList.forEach((key) => {
1112
colorList[key] = {
1213
r: colorObject[key][0],
1314
g: colorObject[key][1],

0 commit comments

Comments
 (0)