mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-25 14:59:16 +01:00
7 lines
305 B
JavaScript
Vendored
7 lines
305 B
JavaScript
Vendored
import isPlainObject from './isPlainObject';
|
|
import warning from './warning';
|
|
export default function verifyPlainObject(value, displayName, methodName) {
|
|
if (!isPlainObject(value)) {
|
|
warning(methodName + "() in " + displayName + " must return a plain object. Instead received " + value + ".");
|
|
}
|
|
} |