forked from MapComplete/MapComplete
Refactoring: move method
This commit is contained in:
parent
a2ad13dd50
commit
b8a0fbe662
15 changed files with 31 additions and 44 deletions
12
src/Utils.ts
12
src/Utils.ts
|
@ -1784,18 +1784,6 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
|
|||
return href
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns 'true' if the given string contains at least one and only emoji characters
|
||||
*
|
||||
* Utils.isEmoji("⛰\uFE0F") // => true
|
||||
* Utils.isEmoji("🇧🇪") // => true
|
||||
* Utils.isEmoji("🍕") // => true
|
||||
*/
|
||||
public static isEmoji(string: string) {
|
||||
return Strings.isEmoji(string)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* JSON.stringify(Utils.reorder({b: "0", a: "1"}, ["a", "b"])) // => '{"a":"1","b":"0"}'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue