Last active
May 11, 2020 14:13
-
-
Save DRFR0ST/9bee1ab89681a321f67c3fb50fed35f5 to your computer and use it in GitHub Desktop.
π§ Keep your data ice cold
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Freeze your object with this Freezer. | |
| * @author Me or You | |
| * @param roomTemperatureData Data for super cooling. | |
| * @example Freezer({ value: "foo" }, { name: "bar" }); | |
| * @returns Frozen as hell data. | |
| */ | |
| const Freezer = (...roomTemperatureData: Object[]) => Object.freeze( roomTemperatureData.map(item => Object.freeze(item) ) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment