Travis build: 2020

This commit is contained in:
30secondsofcode
2018-05-02 17:21:29 +00:00
parent f7cf2263ef
commit 6dcfd36a3e
17 changed files with 76 additions and 40 deletions

View File

@@ -8,7 +8,11 @@ Use the modulo operator (`%`) and conditional checks to transform an integer to
const getMeridiemSuffixOfInteger = num =>
num === 0 || num === 24
? 12 + 'am'
: num === 12 ? 12 + 'pm' : num < 12 ? num % 12 + 'am' : num % 12 + 'pm';
: num === 12
? 12 + 'pm'
: num < 12
? num % 12 + 'am'
: num % 12 + 'pm';
```
```js