MCPcopy
hub / github.com/KaTeX/KaTeX / r

Function r

test/helpers.ts:20–22  ·  view source on GitHub ↗
(x: any)

Source from the content-addressed store, hash-verified

18 * Return the first raw string if x is tagged literal. Otherwise return x.
19 */
20export const r = (x: any): any =>
21 x != null && Object.prototype.hasOwnProperty.call(x, 'raw')
22 ? (x as {raw: string[]}).raw[0] : x;
23
24/**
25 * Copyright (c) 2014-present, Facebook, Inc. All rights reserved.

Callers 5

katex-spec.tsFile · 0.90
getBuiltFunction · 0.85
getParsedFunction · 0.85
expectKaTeXFunction · 0.85
expectEquivalentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected