UNPKG

optix

Version:

Optix is a data manipulation library that provides optics-like capabilites with a simpler syntax. It features robust Typescript support with minimal type annotations and is smaller and faster than true optics libraries.

6 lines (4 loc) 184 B
import { _Set } from "../types" import { _update } from "./update" export const _set: _Set = (object: any, path: readonly any[], value: any) => _update(object, path, () => value)