UNPKG

amp-limit-calls

Version:

limit-calls function part of http://amp.ampersandjs.com.

2 lines (1 loc) 165 B
Creates a version of the function that will be run a maximum of `limit` times. The result of the last function call is cached and returned for any subsequent calls.