Object.keys, values, entries by msisaifu · Pull Request #169 · javascript-tutorial/bn.javascript.info
Navigation Menu
- Notifications You must be signed in to change notification settings
- Fork 86
Conversation
| প্রথম পার্থক্যটি আমরা দেখেছি অন্যান্য ডাটা স্ট্রাকচারের মত `obj.keys()` এর বদলে `Object.keys(obj)` কল করছি। | ||
|
|
||
| Why so? The main reason is flexibility. Remember, objects are a base of all complex structures in JavaScript. So we may have an object of our own like `data` that implements its own `data.values()` method. And we still can call `Object.values(data)` on it. | ||
| এমন কেন? প্রধান কারণ হল সহজযোগ্য করা। কেননা জাভাস্ক্রিপ্টের যে কোন ডাটা স্ট্রাকচার অবজেক্টের উপর ভিত্তি করে তৈরি হয়। তাই আমরা আমাদের নিজস্ব ডাটা স্ট্রাকচারের জন্য `data.values()` মেথড ইমপ্লিমেন্ট করতে পারি। এবং আমরা চাইলে আমাদের বেস অবজেক্টকেও কল করতে পারব`Object.values(data)`। |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
সহজযোগ্য এর পরিবর্তে সহজবোধ্য বা নমনীয় শব্দগুলো ব্যবহার করুন।
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please revised the content and update the PR
Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters