Files
memecoin-botV2/.pnpm-store/v10/files/3e/d5135a3ae86b3125babf2c86df15d71adc238abd085b3bc4bcc8566bcf3eeb76a3045edc3d5992faceda9445015ebaaca45c559d41447db1ca713a9a5fce0e

15 lines
468 B
Plaintext

/**
* @author Toru Nagashima <https://github.com/mysticatea>
*/
"use strict";
/**
* Check whether given two characters are a surrogate pair.
* @param {number} lead The code of the lead character.
* @param {number} tail The code of the tail character.
* @returns {boolean} `true` if the character pair is a surrogate pair.
*/
module.exports = function isSurrogatePair(lead, tail) {
return lead >= 0xd800 && lead < 0xdc00 && tail >= 0xdc00 && tail < 0xe000;
};