UNPKG
amp-limit-calls
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
limit-calls function part of http://amp.ampersandjs.com.
amp.ampersandjs.com
ampersandjs/amp
amp-limit-calls
/
doc.md
2 lines
(1 loc)
•
165 B
Markdown
View Raw
1
2
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.