This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const data = [ | |
{ a: { animal: "dog" } }, | |
{ a: { animal: "dog" } }, | |
{ b: { animal: "dog" } }, | |
{ a: { animal: "dog" } }, | |
{ b: { animal: "puppy" } }, | |
{ c: { animal: "dog" } }, | |
]; | |
function countDuplicates(originalArray) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const data = [ | |
{ name: "Dev User", department: "ICT", taskPercentCompleted: 100 }, | |
{ name: "John Doe", department: "Finance", taskPercentCompleted: 100 }, | |
{ name: "Jane Doe", department: "Human Resource", taskPercentCompleted: 10 }, | |
{ name: "Jane Doe", department: "Human Resource", taskPercentCompleted: 100 }, | |
{ name: "Dev User", department: "ICT", taskPercentCompleted: 90 }, | |
{ name: "John Doe", department: "ICT", taskPercentCompleted: 100 }, | |
{ name: "John Doe", department: "ICT", taskPercentCompleted: 100 }, | |
]; |