lodash debounce inside if code example Example: lodash debounce _.debounce(func, [wait=0], [options={}])