Object.keys do not work on older versions of IE

I was using Object.keys(keyValuePairs).length in order to access number of keys on keyValuePairs but it turned out this does not work on older version of IE. Therefore you should not access the number of keys via Object.keys if you want to support old versions of IE.

If you are using Underscore library, you can use _.size(keyValuePairs) which returns the number of keys in the keyValuePairs.


Popular posts from this blog

Space Character Problem on IE 6, 7, and 8

Configure hosts File in Android

AWS encryption chart (SSE-S3 vs SSE-KMS vs SSE-C)