Get off off rails-assets
Just moving the things we currently use (and should drop in the ASAP) to vendor/assets
This commit is contained in:
parent
9fd0807a9a
commit
b6560dbb34
659 changed files with 129299 additions and 67 deletions
7
vendor/assets/javascripts/momentjs/src/lib/utils/abs-round.js
vendored
Normal file
7
vendor/assets/javascripts/momentjs/src/lib/utils/abs-round.js
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
export default function absRound(number) {
|
||||
if (number < 0) {
|
||||
return Math.round(-1 * number) * -1;
|
||||
} else {
|
||||
return Math.round(number);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue