]> Lady’s Gitweb - Pisces/blob - symbol.js
Rename make⸺ to create⸺ in function.js
[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 { createCallableFunction } 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 = createCallableFunction(
20 getOwnPropertyDescriptor(Symbol.prototype, "description").get,
21 "getSymbolDescription",
22 );
This page took 0.288192 seconds and 5 git commands to generate.