ExtendedJS
How do I make an extendedjs?
What is a extendedjs? How do you make a extendedjs? This script and codes were developed by Leonardo on 01 October 2022, Saturday.
ExtendedJS - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>extendedJS</title>
</head>
<body> <script src="js/index.js"></script>
</body>
</html>
ExtendedJS - Script Codes JS Codes
// Code goes here
Boolean.prototype.ifTrue = function(action){ this == true && action(); return this;
}
Boolean.prototype.otherwise = function(action){ action(); return this;
}
Function.prototype.whileTrue = function whileTrue(test, action){ Boolean(test()).ifTrue(action)
}
Function.prototype.tryme = function tryme(fnCatch, ...args){ try { this(); return true; } catch(err){ fnCatch(err, ...args); return false; }
}
Function.prototype.memonaize = function(){ var theFunction = this; var cache = {}; return function(a, b){ cache[a+'+'+b] = cache[a+'+'+b] || theFunction(a, b); return cache[a+'+'+b]; }
}
function explota(){ console.log(noExiste);
}
function sumar(a, b){ console.log('calculando ', a,b); return a+b;
}
var sumar = sumar.memonaize();
var result = sumar(2,2);
var result2 = sumar(2,2);
explota .tryme(function(err, ...args){ console.log('no pasa nada...', ...args) }, 22, 30) .ifTrue(function(){ console.log('vamo lo pibe') }) .otherwise(function(){ console.log('se pudrió la momia') })
Developer | Leonardo |
Username | llewan |
Uploaded | October 01, 2022 |
Rating | 3 |
Size | 1,705 Kb |
Views | 10,120 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
OGone template | 5,364 Kb |
IsValidImage | 1,510 Kb |
OGone template2 | 3,858 Kb |
OGone Dynamic Template | 2,134 Kb |
A Pen by Leonardo | 1,645 Kb |
Functional React POC | 4,908 Kb |
Type mapper | 1,450 Kb |
Satisfaction Survey | 1,802 Kb |
Curry | 1,547 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
A Pen by Miro Olma | Programiro | 2,342 Kb |
Glowing Pulse Form | Jackrugile | 2,542 Kb |
Awesome Full Page Menu Nav | Ey_intuitive | 4,194 Kb |
Simple Flat Menu | Jeplaa | 2,467 Kb |
Progressively reveal dots on a Bezier curve | GreenSock | 2,489 Kb |
Example SVGZ Data URI | Joeyhoer | 2,981 Kb |
Svg penguin | _massimo | 2,990 Kb |
Heatmap Color Scales | Stevepepple | 2,331 Kb |
Image Stack Test SCSS | CalvinMorett | 2,799 Kb |
BenU Maintenance Site | Ksherman | 4,893 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!