Repository URL to install this package:
Version:
0.9.6 ▾
|
const urls = {
'www': 'www.facebook.com',
'https': 'https://google.com',
'httpswww': 'https://www.eh.ca',
'org': 'wikipedia.org',
'nope': 'wikipedia',
}
test.skip('@todo isUrl', () => {
const mapValues = (obj, fn) => {
Object.keys(obj).forEach(key => {
obj[key] = [obj[key], fn(obj[key])]
})
return obj
}
// mapValues(urls, isUrl)
})