Last active
January 1, 2016 03:57
-
-
Save JavaScript-Packer/3f43516d4af81c62f5bf to your computer and use it in GitHub Desktop.
Multiple replacements VIA an array for find & replace terms.
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
var W,H,A,K; | |
W = '123456'[$='split'](''); | |
H = 'test this WHAK com www for'[$](' '); | |
A = '2 is a 1 (1ed 6 3 2, 1 6 3 that), 1ing 6 5.3.4'; | |
K = 0; for(K in W)A=A[$](W[K]).join(H[K]); | |
document['write'](A); | |
// this is a test (tested for WHAK this, test for WHAK that), testing for www.WHAK.com |
Author
JavaScript-Packer
commented
Jul 26, 2015
Minified 185 bytes
var W,H,A,K;W="123456"[$="split"](""),H="test this WHAK com www for"[$](" "),
A="2 is a 1 (1ed 6 3 2, 1 6 3 that), 1ing 6 5.3.4",K=0;for(K in W)A=A[$](W[K]).join(H[K]);
document.write(A);
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment