@kitsuyui/symbolic-prototype
TypeScript icon, indicating that this package has built-in type declarations

0.1.10 • Public • Published

@kitsuyui/symbolic-prototype

Using ES6 Symbol to avoid conflict with other libraries and native objects. In other words it is a modern version of prototype.js.

Example

import { SymbolicPrototype } from '@kitsuyui/symbolic-prototype';
const $ = SymbolicPrototype.NumberArray;
const array = [1, 2, 3];
const twice = array[$.scale](2);
console.log(twice); // => [2, 4, 6]

Caution

  • I do not recommend using this package. It is just for fun.
  • This package is experimental.
  • This package is not intended to be used in production.
  • Breaking changes may be introduced in the future.

Install

npm install @kitsuyui/symbolic-prototype

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @kitsuyui/symbolic-prototype

Weekly Downloads

3

Version

0.1.10

License

MIT

Unpacked Size

8.32 kB

Total Files

8

Last publish

Collaborators

  • kitsuyui