Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
@ -0,0 +1,9 @@
|
||||
const getMeridiemSuffixOfInteger = num =>
|
||||
num === 0 || num === 24
|
||||
? 12 + 'am'
|
||||
: num === 12
|
||||
? 12 + 'pm'
|
||||
: num < 12
|
||||
? num % 12 + 'am'
|
||||
: num % 12 + 'pm';
|
||||
module.exports = getMeridiemSuffixOfInteger;
|
||||
Reference in New Issue
Block a user