UNPKG

mrcio-ui

Version:

46 lines (37 loc) 1.27 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports._Array = undefined; var _react = require('react'); var _react2 = _interopRequireDefault(_react); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /** * Array 对象小工具 * @Author gufuyan * @Date 2018-08-30 */ var ArrayFn = //函数参数默认值 function ArrayFn() { _classCallCheck(this, ArrayFn); this.in_array = function () { // Array.prototype.S = String.fromCharCode(2); // Array.prototype.in_array = function (e) { // let r = new RegExp(this.S + e + this.S); // return (r.test(this.S + this.join(this.S) + this.S)); // }; // Array.prototype.removeByValue = function (val) { // for (let i = 0; i < this.length; i++) { // if (this[i] == val) { // this.splice(i, 1); // break; // } // } // }; }; }; var _Array = new ArrayFn(); exports._Array = _Array; //# sourceMappingURL=array.js.map