updeep-remeda/lib/constant.js

7 lines
133 B
JavaScript
Raw Normal View History

import freeze from './freeze';
export default function constant(object) {
const frozen = freeze(object);
return () => frozen;
}