blob: c28864f0731b286d26063d4142dd53d98bf43f9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
declare global {
interface Number {
/** @summary convert number to character by charCode */
toChar(): string;
}
}
Number.prototype.toChar = function() {
return String.fromCharCode(this as number);
}
|