xjq

Results 16 comments of xjq

这样呢 ```js function throttle(fn, delay) { let last = 0, timer = null; return function (...args) { let ctx = null; let now = +new Date(); if (last === 0)...

my RN 0.60.5+TypeScript project tsconfig.json ``` { "compilerOptions": { "baseUrl": ".", // all paths are relative to the baseUrl "paths": { "@utils/*": ["src/utils/*"], "@screen/*": ["src/screen/*"], "@store/*": ["src/mobx/*"], "@component/*": ["src/component/*"], "@common/*":...

@gawrysiak That's good ,it's worked for me ,thank you

编程题-字节 ```js // 测试用例 // 输入 const a={foo:{bar:0},arr:[1,3,{a:{b:1}}]} const b={foo:{bar:1},arr:[1,2,{b:{a:1}}]} // 输出,新对象不影响源对象 {foo:{bar:1},arr:[1,2,{a:{b:1},b:{a:1}}]} function merge(a,b){} ```

编程题-明源云 ```js // 实现LazyMan LazyMan('jack').sleep(3000).eat('篮球').eat('rap').eat('唱、跳') // hi,I'm jack // 阻塞3s // 篮球 // rap // 唱、跳 LazyMan('x1').eat('高').sleep(5000).eat('富').eat('帅') // hi,I'm x1 // 高 // 阻塞5s // 富 // 帅 LazyMan('lurenjia').sleepFirst(3000).eat('吹').eat('牛') //...

@EXEC-CSM I would also like to run mappings.wasm in the Java source gallery. Did you get it to work?

```ts type AnyOf = T extends [infer R, ...infer P] ? R extends [] | '' | false | 0 | Record ? AnyOf : true : false ```