43.5k views
3 votes
The replacer parameter of the stringify method accepts a/an ______________ or an array.

User Kolyn
by
4.7k points

1 Answer

4 votes

Answer:

The answer is function

Step-by-step explanation:

As a function, it accepts two parameters: the value and the key being stringified. It can be used to change the value of the entries or eliminate them. As an array, it specifies by name which entries and names of the properties in the object to include in the resulting JSON string.

User Trax
by
5.1k points