Snippets Collections
function deepCopy(obj){
    let toString = Object.prototype.toString;
    if(typeof obj !== 'object') return obj;
    if(obj === null) return null;
    if(Array.isArray(obj)) return obj.map(deepCopy);
    let newObj = {};
    for(let key in obj){
        if(toString.call(obj[key])==='[object Date]'){
            newObj[key] = new Date(obj[key])
        } else if(toString.call(obj[key])==='[object RegExp]'){
            newObj[key] = new RegExp(obj[key])
        }else{
            newObj[key] = deepCopy(obj[key]);
        }
    }
    return newObj;
}
git clone --branch <branchname> <remote-repo-url>
star

Mon Nov 07 2022 12:06:13 GMT+0000 (UTC) https://www.blockchainx.tech/uniswap-clone-script

#uniswap #uniswapclone #clone
star

Wed Jul 28 2021 04:56:58 GMT+0000 (UTC) https://www.freecodecamp.org/news/git-clone-branch-how-to-clone-a-specific-branch/

#git #clone #branch
star

Sat Jul 24 2021 03:10:17 GMT+0000 (UTC) https://www.freecodecamp.org/news/git-clone-branch-how-to-clone-a-specific-branch/

#git #clone

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension