Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 448 Bytes

isATTPrefabHash.md

File metadata and controls

22 lines (15 loc) · 448 Bytes

Function: isATTPrefabHash

Asserts if a <number> is an <ATTPrefabHash>.

Signatures

isATTPrefabHash(hash)

  • hash <number> The hash of the prefab.
  • Returns: <boolean>
import { isATTPrefabHash } from 'att-string-transcoder';

let prefabHash: number;
prefabHash = 23182;
// `prefabHash` is of type `number`.

if (isATTPrefabHash(prefabHash)) {
  // `prefabHash` is of type `ATTPrefabHash`.
}