]>
Lady’s Gitweb - Pisces/blob - object.js
502207e3b6ed1f8496300af183e968c9a72e3f9e
1 // ♓🌟 Piscēs ∷ object.js
2 // ====================================================================
4 // Copyright © 2022 Lady [@ Lady’s Computer].
6 // This Source Code Form is subject to the terms of the Mozilla Public
7 // License, v. 2.0. If a copy of the MPL was not distributed with this
8 // file, You can obtain one at <https://mozilla.org/MPL/2.0/>.
10 /** Returns whether the provided value is a constructor. */
11 export const isConstructor
= ($) => {
13 // The provided value is not an object.
16 // The provided value is an object.
22 ); // will throw if $ is not a constructor
30 /** Returns whether the provided value is an object. */
31 export const isObject
= ($) => {
33 (typeof $ == "function" || typeof $ == "object");
37 * Returns whether the provided object inherits from the prototype of
38 * the provided function.
40 export const ordinaryHasInstance
= Function
.prototype.call
.bind(
41 Function
.prototype[Symbol
.hasInstance
],
This page took 0.038728 seconds and 3 git commands to generate.