Skip to content

Commit 0f0f791

Browse files
author
Gabriel Farrell
committed
Length caching unnecessary in get
1 parent 24177cd commit 0f0f791

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/whiskers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
// get value with dot notation, e.g. get(obj, 'key.for.something')
9494
function get(obj, key) {
9595
var accessor = key.split('.');
96-
for (var i=0, l=accessor.length; i<l; i++) {
96+
for (var i=0; i<accessor.length; i++) {
9797
if (!obj) return '';
9898
obj = obj[accessor[i]];
9999
}

0 commit comments

Comments
 (0)