X-Git-Url: https://git.ladys.computer/Pisces/blobdiff_plain/8e591ec68a18c0c4cc355bcde45747546ed59cd9..ee0f6916f2f56f17bd232f964fec9a4c7ed6ec89:/symbol.js diff --git a/symbol.js b/symbol.js new file mode 100644 index 0000000..514b526 --- /dev/null +++ b/symbol.js @@ -0,0 +1,22 @@ +// ♓🌟 Piscēs ∷ symbol.js +// ==================================================================== +// +// Copyright © 2023 Lady [@ Lady’s Computer]. +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at . + +import { makeCallable } from "./function.js"; +import { getOwnPropertyDescriptor } from "./object.js"; + +/** + * Returns the description for the provided symbol. + * + * ※ This is effectively an alias for the `Symbol::description` + * getter. + */ +export const getSymbolDescription = makeCallable( + getOwnPropertyDescriptor(Symbol.prototype, "description").get, + "getSymbolDescription", +);