Skip to content

Instantly share code, notes, and snippets.

@Lodo4ka
Created September 27, 2019 10:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lodo4ka/77583cc4bd884e251a46985505c5faac to your computer and use it in GitHub Desktop.
Save Lodo4ka/77583cc4bd884e251a46985505c5faac to your computer and use it in GitHub Desktop.
filter from course node
capitalize(value) {
return (
value
.toString()
.charAt(0)
.toUpperCase() + value.slice(1)
);
},
date(value) {
return new Intl.DateTimeFormat('ru-RU', {
year: 'numeric',
month: 'long',
day: '2-digit',
}).format(new Date(value));
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment