EVOLUTION-MANAGER
Edit File: angular.identity.html
<a href='https://github.com/angular/angular.js/edit/v1.3.x/src/Angular.js?message=docs(angular.identity)%3A%20describe%20your%20change...#L389' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit"> </i>Improve this Doc</a> <a href='https://github.com/angular/angular.js/tree/v1.3.9/src/Angular.js#L389' class='view-source pull-right btn btn-primary'> <i class="glyphicon glyphicon-zoom-in"> </i>View Source </a> <header class="api-profile-header"> <h1 class="api-profile-header-heading">angular.identity</h1> <ol class="api-profile-header-structure naked-list step-list"> <li> - function in module <a href="api/ng">ng</a> </li> </ol> </header> <div class="api-profile-description"> <p>A function that returns its first argument. This function is useful when writing code in the functional style.</p> <pre><code class="lang-js">function transformer(transformationFn, value) { return (transformationFn || angular.identity)(value); }; </code></pre> </div> <div> <h2 id="usage">Usage</h2> <p><code>angular.identity(value);</code></p> <section class="api-section"> <h3>Arguments</h3> <table class="variables-matrix input-arguments"> <thead> <tr> <th>Param</th> <th>Type</th> <th>Details</th> </tr> </thead> <tbody> <tr> <td> value </td> <td> <a href="" class="label type-hint type-hint-object">*</a> </td> <td> <p>to be returned.</p> </td> </tr> </tbody> </table> </section> <h3>Returns</h3> <table class="variables-matrix return-arguments"> <tr> <td><a href="" class="label type-hint type-hint-object">*</a></td> <td><p>the value passed in.</p> </td> </tr> </table> </div>