Created
May 24, 2019 13:55
-
-
Save Lodo4ka/c4bb5eacc8bce2ea0b0160f0bf85f446 to your computer and use it in GitHub Desktop.
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
| const clearFieldOfObject = obj => { | |
| Object.keys(obj).map(key => { | |
| if ( | |
| key !== "status_in_work" && | |
| key !== "status_paid" && | |
| key !== "status_wait_mount" && | |
| key !== "status_delivered" && | |
| key !== "status_mounted" && | |
| key !== "status_fullfilled" | |
| ) { | |
| delete obj[key]; | |
| } | |
| }); | |
| return obj; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment