What do you want to save?
Add Code snippet
New code examples
-
Other 2022-01-30 20:51:36
how to check duplicate objects in array and remove in angular
let arr = [ {value: 'L7-LO', name: 'L7-LO'}, {value: '%L7-LO', name: '%L7-LO'}, {value: 'L7-LO', name: 'L7-LO'}, {value: '%L7-LO', name: '%L7-LO'}, {value: 'L7-L3', name: 'L7-L3'}, {value: '%L7-L3', name: '%L7-L3'}, {value: 'LO-L3', name: 'L... Add solution -
Javascript 2021-11-09 13:25:14
js format string 2 digits
var numarr = [8, 32, 128] var formatted = [] //create three numbers of different lengths numarr.forEach(num => { formatted.push( num.toLocaleString('en-US', {//this is the function that formats the numbers minimumIntegerDigits: 2, //change ... Add solution -
Javascript 2021-10-24 23:44:05
how to search through a table javascript
(function() { 'use strict'; var TableFilter = (function() { var Arr = Array.prototype; var input; function onInputEvent(e) { input = e.target; var table1 = document.getElementsByClassName(input.getAttribute('data-table')); ... Add solution -
TypeScript 2021-10-10 07:10:04
group objects in javascript
function groupBy(arr, prop) { const map = new Map(Array.from(arr, obj => [obj[prop], []])); arr.forEach(obj => map.get(obj[prop]).push(obj)); return Array.from(map.values()); } const data = [{ name: "Display", group: "Tec... Add solution