UNPKG

custom-bootstrap-vue

Version:

Custom version of bootstrap-vue created for providing specific theme to a particular project

13 lines (9 loc) 253 B
import { create } from './object' const memoize = fn => { const cache = create(null) return (...args) => { const argsKey = JSON.stringify(args) return (cache[argsKey] = cache[argsKey] || fn.apply(null, args)) } } export default memoize