This repository has been archived on 2026-06-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
flights_web_raw/node_modules/is-plain-obj/index.js
T

11 lines
245 B
JavaScript

'use strict';
module.exports = value => {
if (Object.prototype.toString.call(value) !== '[object Object]') {
return false;
}
const prototype = Object.getPrototypeOf(value);
return prototype === null || prototype === Object.prototype;
};