/*
 * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
 * or more contributor license agreements. Licensed under the Elastic License
 * 2.0 and the Server Side Public License, v 1; you may not use this file except
 * in compliance with, at your election, the Elastic License 2.0 or the Server
 * Side Public License, v 1.
 */

// import moment from 'moment';

const always = _value => true;
const never = _value => false;
const isUndefined = value => {
  return value === undefined;
};
const isNull = value => {
  return value === null;
};
const isNil = value => {
  return isUndefined(value) || isNull(value);
};

// export const isMoment = (value: any) => {
//   return moment.isMoment(value);
// };

// export const isDate = (value: any): value is Date => {
//   return moment.isDate(value);
// };

// export const isDateLike = (value: any): value is moment.Moment | Date => {
//   return isDate(value);
// };

export { always, isNil, isNull, isUndefined, never };
//# sourceMappingURL=common_predicates.js.map
