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 createProxy(obj) { | |
| return new Proxy(obj, { | |
| get(target, key) { | |
| //Callback | |
| return target[key]; | |
| }, | |
| set(target, key, value) { | |
| //Callback | |
| target[key] = value; | |
| return true |
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
| const RandomKeyGenerator=()=>{ | |
| let arr=""; | |
| const chars="abcdefghijklmnoprstuxvyz_".split(""); | |
| for(var i=0;i<=9;i++){ | |
| arr=arr+chars[Math.floor(Math.random() * (24))] | |
| } | |
| return arr; | |
| } | |
| //Outputs: | |
| //rzpdupkpmz |
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
| const namer=(item)=>{ | |
| let data = item; | |
| let last="/>"; | |
| let first="<"; | |
| let count=data.split(last).length-1; | |
| let counted =0; | |
| while(count>counted){ | |
| let lastplac=data.search(last)-1; | |
| let i=0; | |
| let deval=""; |