]> Lady’s Gitweb - Pisces/blob - symbol.js
514b5262c7b1bb844aa326a6625bf9b4239a28ea
[Pisces] / symbol.js
1 // ♓🌟 Piscēs ∷ symbol.js
2 // ====================================================================
3 //
4 // Copyright © 2023 Lady [@ Lady’s Computer].
5 //
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/>.
9
10 import { makeCallable } from "./function.js";
11 import { getOwnPropertyDescriptor } from "./object.js";
12
13 /**
14 * Returns the description for the provided symbol.
15 *
16 * ※ This is effectively an alias for the `Symbol::description`
17 * getter.
18 */
19 export const getSymbolDescription = makeCallable(
20 getOwnPropertyDescriptor(Symbol.prototype, "description").get,
21 "getSymbolDescription",
22 );
This page took 0.049919 seconds and 3 git commands to generate.