-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstrings.js
More file actions
37 lines (33 loc) · 764 Bytes
/
Copy pathstrings.js
File metadata and controls
37 lines (33 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* Returns the string in uppercase with "!" appended.
* @param {string} str
*/
export const shout = (str) => {
};
/**
* Returns the string in lowercase, wrapped in parentheses.
* @param {string} str
*/
export const whisper = (str) => {
};
/**
* Returns "[id] zone" using a template literal.
* @param {string} id
* @param {string} zone
*/
export const formatTag = (id, zone) => {
};
/**
* Returns true if str includes word, false otherwise.
* @param {string} str
* @param {string} word
*/
export const containsWord = (str, word) => {
};
/**
* Given "First Last", returns "F.L."
* Split on space, take first char of each part, uppercase, join with dots, trailing dot.
* @param {string} fullName
*/
export const initials = (fullName) => {
};