Или там как-то по другому надо?
в доке же написано все: > Initially it gets called with an empty string as key representing the object being stringified, and it then gets called for each property on the object or array being stringified. > If you return any other object, the object is recursively stringified into the JSON string, calling the replacer function on each property, unless the object is a function, in which case nothing is added to the JSON string.
Обсуждают сегодня