What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-15 06:21:07
string manipulation
String manipulations: charAt(indexNumber): it returns the char at the given index length(): returns the total number of characters as int length is ALWAYS one unit above the maximum index number maxIndex: length()-1; concat(Value): Concatenation, conc... Add solution -
Javascript 2021-10-08 15:04:03
Javascript array get distinct objects
const categories = ['General', 'Exotic', 'Extreme', 'Extreme', 'General' ,'Water', 'Extreme'] .filter((value, index, categoryArray) => categoryArray.indexOf(value) === index); This will return an array that has the unique category names ['General', 'E... Add solution -
Javascript 2021-09-25 22:59:03
javascript map return array with distinc values
//ES6 let array = [ { "name": "Joe", "age": 17 }, { "name": "Bob", "age": 17 }, { "name": "Carl", "age": 35 } ]; array.map(item => item.age) .filter((valu... Add solution -
Javascript 2021-09-20 09:31:03
filter bootstrap
// filter table by input type text element $(document).ready(function(){ $("#myInput").on("keyup", function() { var value = $(this).val().toLowerCase(); $("#myTable tr").filter(function() { $(this).toggle($(t... Add solution