Interactive interface for browsing global, full-resolution satellite imagery
create natural-event util file
Benjamin King44b1384300a3
diff --git a/web/js/naturalEvents/util.js b/web/js/naturalEvents/util.jsnew file mode 100644index 000000000..5f1dcf8e6--- /dev/null+++ b/web/js/naturalEvents/util.js@@ -0,0 +1,7 @@+import lodashFind from 'lodash/find';++export function getEventById (events, id) {+ return lodashFind(events, function (e) {+ return e.id === id;+ });+};