Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

is-emoji-modifier.js 367B

12345678910111213
  1. /**
  2. * @author Toru Nagashima <https://github.com/mysticatea>
  3. */
  4. "use strict";
  5. /**
  6. * Check whether a given character is an emoji modifier.
  7. * @param {number} code The character code to check.
  8. * @returns {boolean} `true` if the character is an emoji modifier.
  9. */
  10. module.exports = function isEmojiModifier(code) {
  11. return code >= 0x1F3FB && code <= 0x1F3FF;
  12. };