Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sortedKeys: function() {
- let sorted = {}
- Object.keys(this.rumusKomponen)
- .sort()
- .forEach(key => {
- sorted[key] = this.rumusKomponen[key]
- })
- let values = Object.values(sorted)
- let translatedValues = values.map(v => {
- if(v != null) {
- return '['+this.translateTable(this.translateColumn(v))+']'
- }
- })
- return translatedValues.join('')
- },
- sortedKeysIf: function() {
- let sorted = {}
- Object.keys(this.rumusKondisi)
- .sort()
- .forEach(key => {
- sorted[key] = this.rumusKondisi[key]
- })
- let values = Object.values(sorted)
- let translatedValues = values.map(v => {
- if(v != null) {
- return '['+this.translateTable(this.translateColumn(v))+']'
- }
- })
- return translatedValues.join('')
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement