Skip to content

Function: hasOnlyPlainObjects()

hasOnlyPlainObjects(data): boolean

Checks if all objects in data are plain objects (Object.prototype)

Parameters

data

unknown

Data to check recursively

Returns

boolean

true if all objects have Object.prototype, false otherwise

Released under the MIT License.