master
Raw Download raw file
  1
  2normalDate = new Date();
  3normalFunction = function() {
  4  return 'foo';
  5}
  6
  7zero           = 0;
  8smallInteger   = 85;
  9hugeNumber     = 893249283429;
 10floatingNumber = 463.34534533;
 11numberObject   = new Number(53);
 12
 13
 14
 15emptyString  = '';
 16normalString = 'abcdefg';
 17hugeString   = '';
 18stringObject = new String('wasabi');
 19hugeNumberAsString = '893249283429';
 20hugeNumberAsStringWithTrailingLetters = '893249283429alkdf';
 21
 22
 23emptyArray       = [];
 24smallNumberArray = [1,2,3];
 25smallStringArray = ['a','b','c'];
 26
 27
 28biggerStringArray = [
 29  'andere',
 30  'ändere',
 31  'chaque',
 32  'chemin',
 33  'cote',
 34  'cotÉ',
 35  'cÔte',
 36  'cÔtÉ',
 37  'Czech',
 38  'ČuČet',
 39  'hiŠa',
 40  'irdisch',
 41  'lävi',
 42  'lie',
 43  'lire',
 44  'llama',
 45  'LÖwen',
 46  'lÒza',
 47  'LÜbeck',
 48  'luck',
 49  'luČ',
 50  'lye',
 51  'Männer',
 52  'mÀŠta',
 53  'mÎr',
 54  'mÖchten',
 55  'myndig',
 56  'pint',
 57  'piÑa',
 58  'pylon',
 59  'sämtlich',
 60  'savoir',
 61  'Sietla',
 62  'subtle',
 63  'symbol',
 64  'Ślub',
 65  'ŠÀran',
 66  'väga',
 67  'verkehrt',
 68  'vox',
 69  'waffle',
 70  'wood',
 71  'yen',
 72  'yuan',
 73  'yucca',
 74  'zoo',
 75  'ZÜrich',
 76  'Zviedrija',
 77  'zysk',
 78  'Žal',
 79  'Žena'
 80];
 81
 82smallStringArrayWithNumbersMixedIn = [
 83  'file 2',
 84  'file 200',
 85  'file 15',
 86  'file 153',
 87  'file 1',
 88  'file 25225',
 89  'file 252',
 90  'file 95',
 91  'file 932'
 92];
 93
 94
 95bigNumberArray = [];
 96bigCharacterArray = [];
 97bigDateArray   = [];
 98
 99(function() {
100
101  for(var i = 0; i < 10000; i++) {
102    var rand = Math.floor(Math.random() * 1000);
103    var char = String.fromCharCode(rand);
104    bigNumberArray.push(rand);
105    bigDateArray.push(new Date(rand));
106    bigCharacterArray.push(char);
107    hugeString += char;
108  }
109
110})();
111
112
113
114jsonArray = [
115  {
116    "id":3895380,
117    "uri":"http://iknow.jp/items/3895380",
118    "cue":{
119      "type":"text",
120      "content":{
121        "text":"intensive"
122      },
123      "related":{
124        "language":"en",
125        "part_of_speech":"Adjective",
126        "transcription":"\u026an\u02c8t\u025bns\u026av"
127      }
128    },
129    "response":{
130      "type":"meaning",
131      "content":{
132        "text":"\u96c6\u4e2d\u7684\u306a\u3001\u5f37\u3044"
133      },
134      "related":{
135        "language":"ja",
136        "transliterations":[
137          {
138            "type":"Hira",
139            "text":"\u3057\u3085\u3046\u3061\u3085\u3046\u3066\u304d\u306a\u3001\u3064\u3088\u3044"
140          },
141          {
142            "type":"Hrkt",
143            "text":"\u3057\u3085\u3046\u3061\u3085\u3046\u3066\u304d\u306a\u3001\u3064\u3088\u3044"
144          },
145          {
146            "type":"Latn",
147            "text":"shuuchuutekina,tsuyoi"
148          }
149        ]
150      }
151    }
152  },
153  {
154    "id":3895379,
155    "uri":"http://iknow.jp/items/3895379",
156    "cue":{
157      "type":"text",
158      "content":{
159        "text":"condemn"
160      },
161      "related":{
162        "language":"en",
163        "part_of_speech":"Verb",
164        "transcription":"k\u0259n\u02c8d\u025bm"
165      }
166    },
167    "response":{
168      "type":"meaning",
169      "content":{
170        "text":"\u3068\u304c\u3081\u308b\u3001\u975e\u96e3\u3059\u308b"
171      },
172      "related":{
173        "language":"ja",
174        "transliterations":[
175          {
176            "type":"Hira",
177            "text":"\u3068\u304c\u3081\u308b\u3001\u3072\u306a\u3093\u3059\u308b"
178          },
179          {
180            "type":"Hrkt",
181            "text":"\u3068\u304c\u3081\u308b\u3001\u3072\u306a\u3093\u3059\u308b"
182          },
183          {
184            "type":"Latn",
185            "text":"togameru,hinansuru"
186          }
187        ]
188      }
189    }
190  },
191  {
192    "id":3895378,
193    "uri":"http://iknow.jp/items/3895378",
194    "cue":{
195      "type":"text",
196      "content":{
197        "text":"Catholic"
198      },
199      "related":{
200        "language":"en",
201        "part_of_speech":"Adjective",
202        "transcription":"\u02c8k\u00e6\u03b8\u0259l\u026ak"
203      }
204    },
205    "response":{
206      "type":"meaning",
207      "content":{
208        "text":"\u30ab\u30c8\u30ea\u30c3\u30af\u6559\u5f92"
209      },
210      "related":{
211        "language":"ja",
212        "transliterations":[
213          {
214            "type":"Hira",
215            "text":"\u304b\u3068\u308a\u3063\u304f\u304d\u3087\u3046\u3068"
216          },
217          {
218            "type":"Hrkt",
219            "text":"\u30ab\u30c8\u30ea\u30c3\u30af\u304d\u3087\u3046\u3068"
220          },
221          {
222            "type":"Latn",
223            "text":"katorikkukyouto"
224          }
225        ]
226      }
227    }
228  },
229  {
230    "id":3895377,
231    "uri":"http://iknow.jp/items/3895377",
232    "cue":{
233      "type":"text",
234      "content":{
235        "text":"anxiety"
236      },
237      "related":{
238        "language":"en",
239        "part_of_speech":"Noun",
240        "transcription":"\u00e6\u014b\u02c8za\u026a\u026ati\u02d0"
241      }
242    },
243    "response":{
244      "type":"meaning",
245      "content":{
246        "text":"\u5fc3\u914d\u3001\u4e0d\u5b89"
247      },
248      "related":{
249        "language":"ja",
250        "transliterations":[
251          {
252            "type":"Hira",
253            "text":"\u3057\u3093\u3071\u3044\u3001\u3075\u3042\u3093"
254          },
255          {
256            "type":"Hrkt",
257            "text":"\u3057\u3093\u3071\u3044\u3001\u3075\u3042\u3093"
258          },
259          {
260            "type":"Latn",
261            "text":"shinpai,fuan"
262          }
263        ]
264      }
265    }
266  },
267  {
268    "id":3895376,
269    "uri":"http://iknow.jp/items/3895376",
270    "cue":{
271      "type":"text",
272      "content":{
273        "text":"interfere"
274      },
275      "related":{
276        "language":"en",
277        "part_of_speech":"Verb",
278        "transcription":"\u02cc\u026ant\u0259r\u02c8fi\u02d0r"
279      }
280    },
281    "response":{
282      "type":"meaning",
283      "content":{
284        "text":"\u90aa\u9b54\u3059\u308b\u3001\u5e72\u6e09\u3059\u308b"
285      },
286      "related":{
287        "language":"ja",
288        "transliterations":[
289          {
290            "type":"Hira",
291            "text":"\u3058\u3083\u307e\u3059\u308b\u3001\u304b\u3093\u3057\u3087\u3046\u3059\u308b"
292          },
293          {
294            "type":"Hrkt",
295            "text":"\u3058\u3083\u307e\u3059\u308b\u3001\u304b\u3093\u3057\u3087\u3046\u3059\u308b"
296          },
297          {
298            "type":"Latn",
299            "text":"jamasuru,kanshousuru"
300          }
301        ]
302      }
303    }
304  },
305  {
306    "id":3895375,
307    "uri":"http://iknow.jp/items/3895375",
308    "cue":{
309      "type":"text",
310      "content":{
311        "text":"discard"
312      },
313      "related":{
314        "language":"en",
315        "part_of_speech":"Verb",
316        "transcription":"d\u026a\u02c8sk\u0251\u02d0rd"
317      }
318    },
319    "response":{
320      "type":"meaning",
321      "content":{
322        "text":"\u653e\u68c4\u3059\u308b\u3001\uff08\u4e0d\u8981\u306a\u3082\u306e\u3092\uff09\u6368\u3066\u308b"
323      },
324      "related":{
325        "language":"ja",
326        "transliterations":[
327          {
328            "type":"Hira",
329            "text":"\u307b\u3046\u304d\u3059\u308b\u3001\uff08\u3075\u3088\u3046\u306a\u3082\u306e\u3092\uff09\u3059\u3066\u308b"
330          },
331          {
332            "type":"Hrkt",
333            "text":"\u307b\u3046\u304d\u3059\u308b\u3001\uff08\u3075\u3088\u3046\u306a\u3082\u306e\u3092\uff09\u3059\u3066\u308b"
334          },
335          {
336            "type":"Latn",
337            "text":"houkisuru,(fuyounamonowo)suteru"
338          }
339        ]
340      }
341    }
342  },
343  {
344    "id":3895374,
345    "uri":"http://iknow.jp/items/3895374",
346    "cue":{
347      "type":"text",
348      "content":{
349        "text":"fertile"
350      },
351      "related":{
352        "language":"en",
353        "part_of_speech":"Adjective",
354        "transcription":"\u02c8f\u0259rtl"
355      }
356    },
357    "response":{
358      "type":"meaning",
359      "content":{
360        "text":"\u80a5\u6c83\uff08\u3072\u3088\u304f\uff09\u306a"
361      },
362      "related":{
363        "language":"ja",
364        "transliterations":[
365          {
366            "type":"Hira",
367            "text":"\u3072\u3088\u304f\uff08\u3072\u3088\u304f\uff09\u306a"
368          },
369          {
370            "type":"Hrkt",
371            "text":"\u3072\u3088\u304f\uff08\u3072\u3088\u304f\uff09\u306a"
372          },
373          {
374            "type":"Latn",
375            "text":"hiyoku(hiyoku)na"
376          }
377        ]
378      }
379    }
380  },
381  {
382    "id":3895373,
383    "uri":"http://iknow.jp/items/3895373",
384    "cue":{
385      "type":"text",
386      "content":{
387        "text":"decent"
388      },
389      "related":{
390        "language":"en",
391        "part_of_speech":"Adjective",
392        "transcription":"\u02c8di\u02d0s\u0259nt"
393      }
394    },
395    "response":{
396      "type":"meaning",
397      "content":{
398        "text":"\u793c\u5100\u6b63\u3057\u3044\u3001\u7acb\u6d3e\u306a\u3001\u304b\u306a\u308a\u306e"
399      },
400      "related":{
401        "language":"ja",
402        "transliterations":[
403          {
404            "type":"Hira",
405            "text":"\u308c\u3044\u304e\u305f\u3060\u3057\u3044\u3001\u308a\u3063\u3071\u306a\u3001\u304b\u306a\u308a\u306e"
406          },
407          {
408            "type":"Hrkt",
409            "text":"\u308c\u3044\u304e\u305f\u3060\u3057\u3044\u3001\u308a\u3063\u3071\u306a\u3001\u304b\u306a\u308a\u306e"
410          },
411          {
412            "type":"Latn",
413            "text":"reigitadashii,rippana,kanarino"
414          }
415        ]
416      }
417    }
418  },
419  {
420    "id":3895372,
421    "uri":"http://iknow.jp/items/3895372",
422    "cue":{
423      "type":"text",
424      "content":{
425        "text":"loose"
426      },
427      "related":{
428        "language":"en",
429        "part_of_speech":"Adjective",
430        "transcription":"lu\u02d0s"
431      }
432    },
433    "response":{
434      "type":"meaning",
435      "content":{
436        "text":"\u9589\u3058\u3066\u3044\u306a\u3044\u3001\u3086\u308b\u3093\u3060\u3001\u81ea\u7531\u306a"
437      },
438      "related":{
439        "language":"ja",
440        "transliterations":[
441          {
442            "type":"Hira",
443            "text":"\u3068\u3058\u3066\u3044\u306a\u3044\u3001\u3086\u308b\u3093\u3060\u3001\u3058\u3086\u3046\u306a"
444          },
445          {
446            "type":"Hrkt",
447            "text":"\u3068\u3058\u3066\u3044\u306a\u3044\u3001\u3086\u308b\u3093\u3060\u3001\u3058\u3086\u3046\u306a"
448          },
449          {
450            "type":"Latn",
451            "text":"tojiteinai,yurunda,jiyuuna"
452          }
453        ]
454      }
455    }
456  },
457  {
458    "id":3895371,
459    "uri":"http://iknow.jp/items/3895371",
460    "cue":{
461      "type":"text",
462      "content":{
463        "text":"promote"
464      },
465      "related":{
466        "language":"en",
467        "part_of_speech":"Verb",
468        "transcription":"pr\u0259\u02c8mo\u028at"
469      }
470    },
471    "response":{
472      "type":"meaning",
473      "content":{
474        "text":"\u6607\u9032\u3055\u305b\u308b\u3001\u5ba3\u4f1d\u3059\u308b"
475      },
476      "related":{
477        "language":"ja",
478        "transliterations":[
479          {
480            "type":"Hira",
481            "text":"\u3057\u3087\u3046\u3057\u3093\u3055\u305b\u308b\u3001\u305b\u3093\u3067\u3093\u3059\u308b"
482          },
483          {
484            "type":"Hrkt",
485            "text":"\u3057\u3087\u3046\u3057\u3093\u3055\u305b\u308b\u3001\u305b\u3093\u3067\u3093\u3059\u308b"
486          },
487          {
488            "type":"Latn",
489            "text":"shoushinsaseru,sendensuru"
490          }
491        ]
492      }
493    }
494  }
495];
496
497
498simpleObject = { id:14 };
499deepObject = {
500  foo: {
501    foo: {
502      foo: {
503        foo: {
504          foo: {
505            foo: {
506              foo: {
507                foo: {
508                  foo: {
509                    foo: {
510                      foo: {
511                        foo: {
512                          foo: {
513                            foo: {
514                              foo: {
515                                foo: {
516                                  foo: {
517                                    foo: {
518                                      foo: {
519                                        foo: {
520                                          foo: {
521                                            foo: {
522                                              foo: {
523                                                foo: {
524                                                  foo: {
525                                                    foo: {
526                                                      foo: {
527                                                        foo: {
528                                                          foo: {
529                                                            foo: {
530                                                              foo: 'bar'
531                                                            }
532                                                          }
533                                                        }
534                                                      }
535                                                    }
536                                                  }
537                                                }
538                                              }
539                                            }
540                                          }
541                                        }
542                                      }
543                                    }
544                                  }
545                                }
546                              }
547                            }
548                          }
549                        }
550                      }
551                    }
552                  }
553                }
554              }
555            }
556          }
557        }
558      }
559    }
560  }
561};
562jsonObject   = jsonArray[0];