stringify-replacerfunc.js 568 B

12345678910111213141516171819
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. var a = new Object();
  6. function replacer(k, v)
  7. {
  8. return v;
  9. }
  10. for (var i = 0; i < 1290; i++)
  11. {
  12. a[i + 10] = 0;
  13. }
  14. WScript.Echo(JSON.stringify(a, replacer).substring(0,20));