October 2017
Intermediate to advanced
370 pages
8h 57m
English
The following is a list of whitelisted JavaScript functions that can be used in amp-bind expressions.
| Object type | Function |
| Array | concat |
| filter | |
| includes | |
| indexOf | |
| join | |
| lastIndexOf | |
| map | |
| reduce | |
| slice | |
| some | |
| Number | toExponential |
| toFixed | |
| toPrecision | |
| toString | |
| String | charAt |
| charCodeAt | |
| concat | |
| indexOf | |
| lastIndexOf | |
| slice | |
| split | |
| substr | |
| substring | |
| toLowerCase | |
| toUpperCase | |
| Math | abs |
| ceil | |
| floor | |
| max | |
| min | |
| random | |
| round | |
| sign | |
| Object | keys |
| values | |
| Global | encodeURI |
| encodeURIComponent | |
| Custom | splice |
| sort |
Read now
Unlock full access