1

If you open the developer tools in the AngularJS website, some functions stay with the source code hidden. Is there a way to do it?

Example: angular-site

The function toString is returning a classic "native code" of javascript native/pre-compiled functions instead returning the real source code.

1

2 Answers 2

2

You can't* do this. isArray is part of the JavaScript specification and hence implemented by the environment in which you're running, and so is native code. Any JavaScript you yourself serve up can be inspected on the client.


*You could write your own user agent / JavaScript engine...

Sign up to request clarification or add additional context in comments.

Comments

0

This function is a reference of Array.isArray;

/**
 * @name angular.isArray
 * @module ng
 *
 * @description
 * Determines if a reference is an `Array`.
 *
 * @param {*} value Reference to check.
 * @returns {boolean} True if `value` is an `Array`.
 */
var isArray = Array.isArray;

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.