UNPKG

react-native-signalr

Version:

Connect to a SignalR server from react-native

18 lines (17 loc) 447 B
import jqueryFunction from './jquery-function'; import jQuery from 'jquery-deferred'; import ajax from './ajax'; module.exports = jQuery.extend( jqueryFunction, jQuery, { defaultAjaxHeaders: null, ajax: ajax, inArray: (arr, item) => arr.indexOf(item) !== -1, trim: str => str && str.trim(), isEmptyObject: obj => !obj || Object.keys(obj).length === 0, makeArray: arr => [].slice.call(arr, 0), support: { cors: true } });