always
description
Returns a function which will always (hence the name) return the value you passed initially.
example
import { always } from '@waldojeffers/conductor'
const always2 = always(2)
always2() // 2
always2(8) // 2
always2(null) // 2
Returns a function which will always (hence the name) return the value you passed initially.
import { always } from '@waldojeffers/conductor'
const always2 = always(2)
always2() // 2
always2(8) // 2
always2(null) // 2