Lines Matching refs:function
23 function or an array of strings.
44 Date.prototype.toJSON = function (key) {
45 function f(n) {
72 a replacer function to replace those with JSON values.
92 text = JSON.stringify([new Date()], function (key, value) {
103 The optional reviver parameter is a function that can filter and
114 myData = JSON.parse(text, function (key, value) {
127 myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
168 (function () {
170 function f(n) {
175 if (typeof Date.prototype.toJSON !== 'function') {
177 Date.prototype.toJSON = function (key) {
204 function quote(string) {
213 '"' + string.replace(escapable, function (a) {
222 function str(key, holder) {
237 typeof value.toJSON === 'function') {
241 // If we were called with a replacer function, then call the replacer to
244 if (typeof rep === 'function') {
355 if (typeof JSON.stringify !== 'function') {
356 JSON.stringify = function (value, replacer, space) {
359 // space parameter, and returns a JSON text. The replacer can be a function
382 // If there is a replacer, it must be a function or an array.
386 if (replacer && typeof replacer !== 'function' &&
402 if (typeof JSON.parse !== 'function') {
403 JSON.parse = function (text, reviver) {
405 // The parse method takes a text and an optional reviver function, and returns
410 function walk(holder, key) {
438 text = text.replace(cx, function (a) {
462 // In the third stage we use the eval function to compile the text into a
470 // each name/value pair to a reviver function for possible transformation.
472 return typeof reviver === 'function' ?