UNPKG

@aurelia/expression-parser

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/) [![CircleCI](https://circleci.com/

11 lines (7 loc) 427 B
/** @internal */ export const createError = (message: string) => new Error(message); /** @internal */ export const isString = (v: unknown): v is string => typeof v === 'string'; // this is used inside template literal, since TS errs without String(...value) /** @internal */ export const safeString = String; /** @internal */ export const createLookup = <T>(): Record<string, T> => Object.create(null) as Record<string, T>;