Skip to content

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.js
new file mode 100644
index 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;
+ });
+};