From ef749c3539696933ee9022e1cb569cd8e25812a2 Mon Sep 17 00:00:00 2001 From: Gauthier JACQUES Date: Wed, 23 Nov 2016 13:43:12 +0100 Subject: [PATCH] Replaced Object.keys(...) by Object.getOwnPropertyNames(...) which is safer and has same browser support --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 9c305a896..86538fc8f 100644 --- a/src/index.js +++ b/src/index.js @@ -146,7 +146,7 @@ class ReactTooltip extends Component { // targetArray is a NodeList, convert it to a real array // I hope I can use Object.values... - return Object.keys(targetArray).filter(key => key !== 'length').map(key => { + return Object.getOwnPropertyNames(targetArray).map(key => { return targetArray[key] }) }