Commit d254c8cc authored by Michael Underwood's avatar Michael Underwood
Browse files

Simplify `isFunction` method

parent 6bda3942
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ export const capitalizeFirstLetter = (string) => {
  return string.charAt(0).toUpperCase() + string.slice(1);
};

export const isFunction = (obj) => obj && typeof obj === "function";
export const isFunction = (x) => typeof x === "function";

export const propsBinder = (methods, leafletElement, props) => {
  for (const key in props) {