INNER CODE UNIT · JavaScript

isAndroid

nitaliano/react-native-mapbox-gl · javascript/utils/index.js:25

export function isAndroid() {
  return Platform.OS === 'android';
}

export function isFunction(fn) {
  return typeof fn === 'function';
}

export function isNumber(num) {
  return typeof num === 'number' && !Number.isNaN(num);
}

export function isUndefined(obj) {
  return typeof obj === 'undefined';
}

export function isString(str) {
  return typeof str === 'string';

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…