This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function valorge(itemId){ | |
| var url = "http://services.runescape.com/m=itemdb_rs/api/catalogue/detail.json?item="+itemId; | |
| var jsondata = UrlFetchApp.fetch(url); | |
| var object = JSON.parse(jsondata.getContentText()); | |
| return object.item.current.price; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type Positions = 'top' | 'left' | 'right' | 'bottom'; | |
| type CombinationTwoElements<T extends Positions = Positions> = T extends infer U | |
| ? [U, Exclude<Positions, U>] | |
| : never; | |
| type CombinationThreeElements<T extends Positions = Positions> = | |
| T extends infer First | |
| ? [ | |
| First, |