Skip to content

Commit 330b047

Browse files
Merge pull request #61 from Yugveer06/main
fix: Function name mismatch
2 parents e7a1093 + c1e864a commit 330b047

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

public/data/javascript.json

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"author": "James-Beans"
1313
}
1414
]
15-
},
15+
},
1616
{
1717
"categoryName": "Array Manipulation",
1818
"snippets": [
@@ -41,7 +41,7 @@
4141
],
4242
"tags": ["javascript", "array", "flatten", "utility"],
4343
"author": "dostonnabotov"
44-
},
44+
},
4545
{
4646
"title": "Shuffle Array",
4747
"description": "Shuffles an Array.",
@@ -617,11 +617,19 @@
617617
"// usage",
618618
"const pastDate = new Date('2021-12-29 13:00:00');",
619619
"const futureDate = new Date('2026-12-29 13:00:00');",
620-
"console.log(timeAgoOrAhead(pastDate)); // x years ago",
621-
"console.log(timeAgoOrAhead(new Date())); // just now",
622-
"console.log(timeAgoOrAhead(futureDate)); // in x years"
620+
"console.log(getRelativeTime(pastDate)); // x years ago",
621+
"console.log(getRelativeTime(new Date())); // just now",
622+
"console.log(getRelativeTime(futureDate)); // in x years"
623+
],
624+
"tags": [
625+
"javascript",
626+
"date",
627+
"time",
628+
"relative",
629+
"future",
630+
"past",
631+
"utility"
623632
],
624-
"tags": ["javascript", "date", "time", "relative", "future", "past", "utility"],
625633
"author": "Yugveer06"
626634
},
627635
{
@@ -802,7 +810,14 @@
802810
"console.log(getContrastColor('#ff6347')); // Output: #000000 (black)",
803811
"console.log(getContrastColor('#f4f')); // Output: #000000 (black)"
804812
],
805-
"tags": ["javascript", "color", "hex", "contrast", "brightness", "utility"],
813+
"tags": [
814+
"javascript",
815+
"color",
816+
"hex",
817+
"contrast",
818+
"brightness",
819+
"utility"
820+
],
806821
"author": "yaya12085"
807822
},
808823
{

0 commit comments

Comments
 (0)