(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
const text = "\u5FCD\u8005\u30D1\u30EF\u30FC"; | |
const matchAll = /[\w\u0080-\uFFFF_-]+/; | |
console.log(text.match(matchAll), "Our regexp matches non-ASCII!"); |
function compress(source) { | |
const keys = {}; | |
source.replace( | |
/([^=&]+)=([^&]*)/g, | |
function(full, key, value) { | |
keys[key] = | |
(keys[key] ? keys[key] + "," : "") + value; | |
return ""; | |
} | |
); |