Eliminate if-statement (#3561)
Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
This commit is contained in:
		| @@ -1,6 +1,3 @@ | ||||
| import Vue from 'vue'; | ||||
|  | ||||
| Vue.filter('number', (n) => { | ||||
| 	if (n == null) return 'N/A'; | ||||
| 	return n.toLocaleString(); | ||||
| }); | ||||
| Vue.filter('number', n => n == null ? 'N/A' : n.toLocaleString()); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aya Morisawa
					Aya Morisawa