SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 0 JavaScript

fix(filterFilter): don't throw if `key.charAt` is not a function

Previously, when an object has keys which are not of type string, `filterFilter`
would throw an exception for trying to call `key.charAt()`, which is a string
method.

This commit checks whether `charAt` is defined before calling it.

Fixes #15644

Closes #15660
P
PRIJCK Frederik (FPRJ) committed
2af2607fba4eda8f963f7db2e9b8076ac26129a0
Parent: a0641ea
Committed by Georgios Kalpakas <kalpakas.g@gmail.com> on 2/8/2017, 9:17:26 PM