What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-20 06:00:11
remove accesnt and simbols and paranthesis from text js
//Normalize diacritics characters from originalText var originalText = "éàçèñ" var result = originalText.normalize('NFD').replace(/[\u0300-\u036f]/g, "") console.log(result) Add solution -
Javascript 2022-02-17 07:05:02
_.get alternative
//This Is my alternative to (lodash) _.get() method const get = (obj, path, def) => (() => typeof path === 'string' ? path.replace(/\[(\d+)]/g,'.$1') : path.join('.'))() .split('.') .filter(Boolean) .every(step => ((obj = obj[step]) !== u... Add solution -
Javascript 2022-02-15 12:20:10
Javascript convert html entity to string
const htmlEntities = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&apos;" }; return str.re... Add solution -
Html 2022-02-14 23:15:02
javascript hack
import os import shutil sourcePath = r'C:\Users\...\What_to_copy_to_phone' destPath = r'Computer\XT1032\Internal storage' for root, dirs, files in os.walk(sourcePath): #figure out where we're going dest = destPath + root.replace(sourcePath, '') #if we'r... Add solution
Best helpers
Ranking is empty