UNPKG

bootstrap-vue

Version:

BootstrapVue provides one of the most comprehensive implementations of Bootstrap 4 components and grid system for Vue.js and with extensive and automated WAI-ARIA accessibility markup.

11 lines (8 loc) 255 B
import { create } from './object' export default function memoize (fn) { const cache = create(null) return function memoizedFn () { const args = JSON.stringify(arguments) return (cache[args] = cache[args] || fn.apply(null, arguments)) } }