angular-underscore icon indicating copy to clipboard operation
angular-underscore copied to clipboard

Shiv for "sortedIndex"

Open aikoven opened this issue 10 years ago • 0 comments

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

aikoven avatar Jun 20 '14 06:06 aikoven