Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 25d391c

Browse files
author
rsegu
committed
use call() for better performance
call() performance twice as better than apply() http://jsperf.com/call-apply-segu
1 parent 58e693b commit 25d391c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/CollectionUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ define(function (require, exports, module) {
9595
* @return {boolean} True if the object contains the property
9696
*/
9797
function hasProperty(object, property) {
98-
return Object.prototype.hasOwnProperty.apply(object, [property]);
98+
return Object.prototype.hasOwnProperty.call(object, property);
9999
}
100100

101101
// Define public API

0 commit comments

Comments
 (0)