tyler

星期一 02 下午 三月 10o 2025

Bytes: TikTok comes for React Native

Bytes: TikTok comes for React Native

Cool Bits logo

Cool Bits

  1. Agents.json is an open-source JSON spec that formally describes contracts for API and AI agent interactions and is built on top of the OpenAPI standard.

  2. Allen Pike wrote an article called, JavaScript fatigue strikes back. And I can’t believe that Jordan Walke was Alex Russell’s father this whole time.

  3. Meticulous generates and maintains an exhaustive suite of e2e UI tests that cover every edge case of your web app with zero developer effort. The tool has zero flakes (powered by a deterministic replay engine), and it’s relied on by Dropbox, Lattice, Bilt Rewards and hundreds of engineering organizations. Check it out. [sponsored]

  4. Norah Sakal wrote about the key differences between MCP and APIs. Has anyone else been talking about MCP much recently? I really haven’t noticed.

  5. Jeremy Wells wrote an article called Rails views, web components, React. Why make a choice? Because sometimes, indecision is the best decision.

  6. React Router v7.3 came out with Vite environment API improvements, client-side context (unstable), and middleware (unstable).

  7. Bit created an open-source build system framework for developing “composable software”. It helps you leverage, reuse, and extend your application’s existing code so that you can build a better user experience much faster. [sponsored]

  8. Eliseo Martelli wrote about Apple’s software quality crisis, but has he even tried to Genmoji it tho?

  9. Angular 19.2 introduced new APIs for asynchronous reactivity and some better template ergonomics. If this doesn’t fix my carpal tunnel, nothing will.

  10. CarbonQA provides high-quality QA services that scale. Their US-based testers will break your app repeatedly, and do all the manual testing your engineers hate doing. [sponsored]

  11. Ryan Dahl and Andy Jiang wrote about what Node’s new TypeScript support means for Deno.

  12. Mistral OCR is an Optical Character Recognition API that claims to be the world’s “best document understanding API.” I’m really hoping it can understand my late grandfather’s will better than my family can, because six of my cousins are currently suing each other over his souvenir spoon collection.


Pop Quiz logo

Pop Quiz: Answer

const friends = ['Alex', 'AB', 'Mikenzi']
friends.hasOwnProperty('push') // false

As mentioned earlier, if you look at Array.prototype, it doesn’t have a hasOwnProperty method. How then, does the friends array have access to hasOwnProperty?

The reason is because the Array class extends the Object class. So when the JavaScript interpreter sees that friends doesn’t have a hasOwnProperty property, it checks if Array.prototype does. When Array.prototype doesn’t, it checks if Object.prototype does, it does, then it invokes it.

const friends = ['Alex', 'AB', 'Mikenzi']

console.log(Object.prototype)
/*
   constructor: ƒ Object()
   hasOwnProperty: ƒ hasOwnProperty()
   isPrototypeOf: ƒ isPrototypeOf()
   propertyIsEnumerable: ƒ propertyIsEnumerable()
   toLocaleString: ƒ toLocaleString()
   toString: ƒ toString()
   valueOf: ƒ valueOf()
*/

friends instanceof Array // true
friends instanceof Object // true

friends.hasOwnProperty('push') // false

Bytes

Want us to say nice things

about your company?

Sponsor Bytes

or share it

Built with ❤️ by ui.dev

50 W Broadway Ste 333 PMB 51647 Salt Lake City, Utah 84101

发布者