Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita67a671

Browse files
committed
small optimization
1 parent6e74ebb commita67a671

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/json.human.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
}
4848

4949
function_format(data,prefixer){
50-
varresult,container,key,keyNode,valNode,
50+
varresult,container,key,keyNode,valNode,len,
5151
isEmpty=true,
5252
p=prefixer,
5353
accum=[],
@@ -108,7 +108,7 @@
108108
caseARRAY:
109109
if(data.length>0){
110110
result=crel("table",{"class":p("type-array")});
111-
for(key=0;key<data.length;key+=1){
111+
for(key=0,len=data.length;key<len;key+=1){
112112
keyNode=crel("th",
113113
{"class":p("key")+" "+p("array-key")},
114114
""+key);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp