From 64a30b62b0e27fa9629e0501fe314aadf18b1b52 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 27 Dec 2017 16:07:58 +0000 Subject: [PATCH] Travis build: 376 --- README.md | 4 ++-- docs/index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a0f392fc6..40469a5a2 100644 --- a/README.md +++ b/README.md @@ -1146,7 +1146,7 @@ const currentURL = () => window.location.href; ``` ```js -currentUrl() // 'https://google.com' +currentURL() // 'https://google.com' ``` [⬆ back to top](#table-of-contents) @@ -1574,7 +1574,7 @@ const digitize = n => [...'' + n].map(i => parseInt(i)); ``` ```js -differenceWith([1, 1.2, 1.5, 3], [1.9, 3], (a,b) => Math.round(a) == Math.round(b)) // [1, 1.2] +digitize(123) // [1, 2, 3] ``` [⬆ back to top](#table-of-contents) diff --git a/docs/index.html b/docs/index.html index 541c463d3..15808a95b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -738,7 +738,7 @@ zipObject(['a','b'], [1,2,3]) // {a: 1, b: 2}

Use window.location.href to get current URL.

const currentURL = () => window.location.href;
 
-
currentUrl() // 'https://google.com'
+
currentURL() // 'https://google.com'
 

detectDeviceType

Detects wether the website is being opened in a mobile device or a desktop/laptop.

@@ -962,7 +962,7 @@ collatz(5) // 16 Use Array.map() and parseInt() to transform each value to an integer.

const digitize = n => [...'' + n].map(i => parseInt(i));
 
-
differenceWith([1, 1.2, 1.5, 3], [1.9, 3], (a,b) => Math.round(a) == Math.round(b)) // [1, 1.2]
+
digitize(123) // [1, 2, 3]
 

distance

Returns the distance between two points.