floydwch / angular-underscore

Underscore adapter for AngularJS
316 stars 86 forks source link

Shiv for "sortedIndex" #15

Open aikoven opened 10 years ago

aikoven commented 10 years ago

Shiv for "min" and "max" breaks "sortedIndex" on arrays of strings:

_.sortedIndex(['a', 'd', 'f'], 'c')

Second argument is transformed to propGetterFactory:

args[1] = propGetterFactory(args[1]);

https://github.com/floydsoft/angular-underscore/blob/master/angular-underscore.js#L28