1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-23 10:46:13 +02:00

Add typescript types for patterns

This commit is contained in:
Phuoc Nguyen
2019-11-24 23:36:43 +07:00
parent 154a61de91
commit 6d3d9da384
88 changed files with 146 additions and 93 deletions

View File

@@ -1,2 +1,3 @@
const randomFromArray = (array) => array[Math.floor(Math.random() * array.length)];
const randomFromArray = (array: number[]) => array[Math.floor(Math.random() * array.length)];
export default randomFromArray;