Modes of SVG

Three modes of SVG Object embeded srcobject data=""iframe src="" Image img srcbackground : url() Inline svg path {stroke-dasharray: 5, 2;stroke-dashoffset :...
Read More ⟶

Angular number up to two decimal point

{{currentInProgressBadge.badge_progress | number:...
Read More ⟶

Function Performance check

const myAwesomeArray = [1, 2, 3, 4, 5] const startForEach = performance.now() myAwesomeArray.forEach(x => (x + x) * 10000000000) const endForEach = performance.now() console.log(`Speed [forEach]: ${endForEach - startForEach} miliseconds`) const startMap =...
Read More ⟶

Check word score in a string

// Capital letter - 1 // small letter - 2 // number - 3 // spl char - 4 let str = "l. lorem ip 123"; let str1 = "skdfh skdfh alsjdhf KJHGH24 ksdhfksfh"; let arrayStr = str1.split(" "); let obj = {} function checkCase(ch) { if (!isNaN(ch *...
Read More ⟶