UNPKG

@nativescript/core

Version:

A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.

7 lines (6 loc) 214 B
/** * A function that evaluates the action only once. * @param action The action to be evaluated to get the result. * Returns the evaluated result. */ export default function lazy<T>(action: () => T): () => T;