function Deep.protectimport { Deep } from "https://deno.land/x/rimbu@0.12.3/core/mod.ts"; const { protect } = Deep; protect<T>(source: T): Protected<T>Returns the same value wrapped in the Protected type. ExamplesExample 1 const obj = Deep.protect({ a: 1, b: { c: true, d: [1] } }) obj.a = 2 // compiler error: a is readonly obj.b.c = false // compiler error: c is readonly obj.b.d.push(2) // compiler error: d is a readonly array (obj as any).b.d.push(2) // will actually mutate the object Type ParametersTParameterssource: T the value to wrap ReturnsProtected<T>