What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-09-04 19:41:01
string json format to object in php
<?php // JSON string $someJSON = '[{"name":"Jonathan Suh","gender":"male"},{"name":"William Philbin","gender":"male"},{"name":"Allison McKinnery",&q... Add solution -
Html 2021-08-29 16:18:02
make a command prompt with your own commands html
#kill-server #!/bin/bash RED='\e[31m' NOCOLOR='\033[0m' GREEN='\e[92m' echo -e "Getting PID's from port :$1..." PIDINFO=`netstat -ano | findstr :$1` if [ $# -eq 0 ] then echo -e "${RED}No port number specified" ec... Add solution -
TypeScript 2021-08-28 07:44:01
filter duplicate using map and filter in typescript
var arrOfObj = [ { id:1 ,name:'abc',age:27 }, { id:2 ,name:'pqr',age:27 }, { id:1 ,name:'abc',age:27 }, ] var setObj = new Set(); // create key value pair from array of array var result = arrOfObj.reduce((acc,item)=>{ if(!s... Add solution