This file contains hidden or 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
| <div id="trapezium"> | |
| </div> |
This file contains hidden or 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
| <div id="curvedarrow"> | |
| </div> |
This file contains hidden or 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
| <div id="curvedarrow"> | |
| </div> |
This file contains hidden or 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
| <div class="square"></div> | |
| <div class="rectangle"></div> | |
| <div class="circle"></div> | |
| <div class="oval"></div> | |
| <div class="triangle-up"></div> | |
| <div class="triangle-down"></div> | |
| <div class="triangle-left"></div> | |
| <div class="triangle-right"></div> | |
| <div class="triangle-top-left-shape"></div> | |
| <div class="triangle-top-right-shape"></div> |
This file contains hidden or 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
| [ | |
| { | |
| "year": "1989", | |
| "matches": 1, | |
| "runs": 0, | |
| "highest_score": "0", | |
| "batting_avg": 0, | |
| "no_of_100s": 0, | |
| "wickets": "-", | |
| "best_bowling": "-", |
This file contains hidden or 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
| function debounce(fn, time) { | |
| let setTimeOutId; | |
| const context = this; | |
| return function() { | |
| if(setTimeoutId) { | |
| clearTimeout(setTimeoutId); | |
| } | |
| setTimeoutId = setTimeout(function(){ |
This file contains hidden or 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
| function debounce(fn, time) { | |
| let setTimeOutId; | |
| const context = this; | |
| return function() { | |
| if(setTimeoutId) { | |
| clearTimeout(setTimeoutId); | |
| } | |
| setTimeoutId = setTimeout(function(){ |
This file contains hidden or 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
| function.prototype.bind = function(context) { | |
| var fn = this | |
| return function(){ | |
| fn.call(context); | |
| } | |
| } |
This file contains hidden or 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
| function flatten(arr) { | |
| a = [] | |
| arr.forEach((s) => { | |
| if(Array.isArray(s)){ | |
| a = a.concat(flatten(s)) | |
| }else{ | |
| a.push(s) | |
| } | |
| }) | |
This file contains hidden or 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
| function removeDuplicate(str) { | |
| arr = [] | |
| prev_value = '' | |
| splitted_str = str.split(' ') | |
| splitted_str.forEach((s) => { | |
| console.log("prev value", prev_value) | |
| console.log("s value", s) | |
| if(s !== prev_value) { | |
| arr.push(s); |
NewerOlder