MCPcopy Index your code
hub / github.com/formatjs/formatjs / createDataProperty

Function createDataProperty

packages/ecma402-abstract/utils.ts:118–129  ·  view source on GitHub ↗
(
  target: T,
  name: string | symbol,
  value: any
)

Source from the content-addressed store, hash-verified

116 * @param value
117 */
118export function createDataProperty<T extends object>(
119 target: T,
120 name: string | symbol,
121 value: any
122): void {
123 Object.defineProperty(target, name, {
124 configurable: true,
125 enumerable: true,
126 writable: true,
127 value,
128 })
129}
130
131export function invariant(
132 condition: boolean,

Callers 2

getTextInfoMethod · 0.85
getWeekInfoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected