UNPKG

rsuite

Version:

A suite of react components

7 lines (6 loc) 132 B
export default function clone(data) { if (data !== undefined) { return JSON.parse(JSON.stringify(data)); } return null; }